Multiple choice

Which of the following class names follows proper Java naming conventions?

  1. myClass

  2. The_Classiest_Class

  3. MyClassyClass

  4. aniketsclasstoendallclasses

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Java class naming conventions dictate using UpperCamelCase (PascalCase), where the first letter of each word is capitalized, and no underscores or special characters are used. 'MyClassyClass' perfectly adheres to this standard.