Advertisements
Advertisements
Question
Which of the following is a valid statement?
Options
Class carpark
class car park
class carpark
class Car-Park
MCQ
Advertisements
Solution
class carpark
Explanation:
The statement class carpark is valid because it strictly satisfies all of Java's identifier rules. In Java, the class keyword must always be fully lowercase.
shaalaa.com
Is there an error in this question or solution?
