Multiple choice technology programming languages

Which of the following are reserved keywords in Java?

  1. public

  2. static

  3. void

  4. main

  5. String

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

public, static, and void are reserved keywords in Java used for access control, modifiers, and return types. String is a class name (identifier) and main is a method name (identifier), not keywords.