English

Which of the following is a valid statement? (a) Class carpark (b) class car park (c) class carpark (d) class Car-Park

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?
Chapter 5: Library Classes - Exercises [Page 133]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 5 Library Classes
Exercises | Q 1. (v) | Page 133
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×