Computer Science
What do you understand by Java reserved words? Name at least five Java reserved words which are commonly used in Java programming.
Java Intro
28 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:
- public
- class
- int
- double
- char
Answered By
17 Likes