Question 37 / 90:  Consider the following declarations. Which declaration has an element name that does not conform to standard naming conventions?
A  static final int varName; // variable
B  Integer IntName; // variable
C  void getName () {…} // method
D  public class Name {…} // class
<< First < Previous Flashcard Next > Last >>
Explanation:

B. B is correct because the proper naming convention is not used.

All variables should start with a lowercase letter—thus, IntName should read intName.

A, C, and D are incorrect because they make use of the proper naming conventions.

Variable and method names should appear in all lowercase characters, using camel case where

appropriate. Class, interface, and enumeration names should start with an uppercase character, followed by lowercase characters and camel case where appropriate. Note that “camel case” refers to the capitalization of the first letter of appropriate words within an identifier.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>