KnowledgeBoat Logo

Computer Applications

What are Java reserved words? Name any five.

Java Intro

ICSE

83 Likes

Answer

In Java, a reserved word is a word that has a predefined meaning in the language. Due to this, reserved words can’t be used as names for variables, methods, classes or any other identifier. Reserved words are also known as keywords. Five commonly used Java reserved words are:

  1. public
  2. class
  3. int
  4. double
  5. char

Answered By

50 Likes


Related Questions