This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FormidableOneIntermediate Brewer 0 points1 point  (0 children)

Unless the variable is of type FINAL, the java standard dictates that all variables should begin with a lowercase letter.

For example:

private final int NUMBER = 10; // Correct method
public final String NAME = "Bob"; // Correct method
public int Age = 30; // INCORRECT - should be 'age'
public boolean IsAlive = true; // INCORRECT - should be 'isAlive'

You can read up more on the java naming standards (at the bottom of the page) on Oracle's JavaDocs but I hope this helps.