English

Which of the following is a valid java keyword? - Computer Applications

Advertisements
Advertisements

Question

Which of the following is a valid java keyword?

Options

  • If

  • BOOLEAN

  • Static

  • Switch

MCQ

Solution

Static

Explanation:

"Static" is a valid keyword used to declare class-level variables and methods that belong to the class itself rather than any instance of the class. This allows such variables and methods to be accessed without creating an instance of the class.

shaalaa.com
Tokens
  Is there an error in this question or solution?
2024-2025 (April) Specimen Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×