Which among the following is valid class name in Java
a. Myclass
b. MyClass
c. 1Myclass
d. My Class
Answers
Answered by
3
Answer:
Explanation:MyClass$ is the answer
Answered by
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
Computer Science,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
English,
6 months ago
Chemistry,
10 months ago
Political Science,
10 months ago