What are some of the Java Naming conventions ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What are some of the Java Naming conventions ?Core Java
Ans. 1. Class name should be a noun and should start with capital case character.

2. Interface Name should be an adjective and should start with capital case character.

3. Method and Variable names should follow lower camel case notation.

4. package name should be all lower case.

5. constant variables (static final) should be all capital case.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     naming conventions      basic


Related Questions

  Shall we keep the enumeration name in all capital letters as it contains all constants ?
 How do you prefer to keep names for classes and interfaces ?
 If we have to maintain a value "7" denoting "number of days in a week" as constant variable, Which of the following is the best constant name and Why ?

SEVEN
NUMBER_OF_DAYS_IN_WEEK
NUMBER_OF_DAYS_IN_WEEK_7
 If we have to maintain a value "31" denoting "number of days in a month" as constant variable, Which of the following is the best constant name and Why ?

THIRTY_ONE
NUMBER_OF_DAYS_IN_MONTH
NUMBER_OF_DAYS_IN_MONTH_31
 Would you consider creating a constant name for "null" ?




Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: