and Answers| Latest Update
Which of the following are a reserved words in Java: comment VOID return program Graphics
new ✔️✔️return, new
Is it a syntax error or bad Java style to use reserved words for method names? ✔️✔️Syntax error
Is it a syntax error to use the names of methods from Java library classes for your own
methods? ✔️✔️Yes.
Can a Java program include two public methods with the same name? ✔️✔️Yes.
What are the capitalization standards for good style when naming fields in a Java class? ✔️✔️The
first word is lowercase. The second word starts with a capital letter.
Why is "balance_due" not a good name for a variable? ✔️✔️The second word should start with
an uppercase letter. There shouldn't be an underscore, because it is not commonly accepted
Java style.
In Java programs, which of the following names usually start with a capital letter: Names of
classes, Names of all methods and fields, Only names of public methods ✔️✔️Names of classes.
What are the standards for syntactically valid method names in Java? ✔️✔️Cannot start with a
number or contain special symbol except for "$" and "_"
Why is it a bad idea to name your Java class "string"? ✔️✔️It would be a problem with style,
because "string" is a command line.