Computer Science
What are reserved words? Name at least five reserved words.
Values & Data Types Java
8 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
3 Likes
Related Questions
Arrange these operators according to their precedence:
Operators Precedence of Operators Logical AND Additive Relational Conditional Multiplicative Logical OR Assignment Postfix What is meant by Token? Name all the tokens which are used in Java.
Explain Assignment operator with an example.
Explain Relational operator with an example.