Computer Science, asked by maazkrsd, 4 months ago

write any two rules for naming a class in java​

Answers

Answered by niharikagurjar2005
3

Answer:

Except for variables, all instance, class, and class constants are in mixed case with a lowercase first letter. Internal words start with capital letters. Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed. Variable names should be short yet meaningful.

Hope it's help u

Answered by Anonymous
2

Answer:

Except for variables, all instance, class, and class constants are in mixed case with a lowercase first letter. Internal words start with capital letters. Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed. Variable names should be short yet meaningful.

Explanation:

The points to be taken care of while naming a class, in a Java program are : ◾The class name must not be a Java reserved word. ◾As far as possible, the class name should be meaningful and relevant to the program.

Similar questions