Computer Science, asked by bazigarooo, 6 months ago

Which among the following is valid class name in Java

a. Myclass

b. MyClass

c. 1Myclass

d. My Class

Answers

Answered by itsgagan
3

Answer:

Explanation:MyClass$ is the answer

Answered by kavyapsynergy
1

Myclass & MyClass are the following is valid class names in Java

Class name

  • The class name's first letter should be capitalized, while the other letters can be mixed case.
  • The class names should be nouns with the first letter of each internal word capitalized and the remaining in mixed case.
  • The name of the current class should not be the predefined or existing class names.
  • The class name should not be any Java keywords (with the same case).

Similar questions