The const keyword in Java programming language
- Home
- Keyword in Java
- The const keyword in Java programming language
- On
- By
- 0 Comment
- Categories: Keyword in Java
The const keyword in Java programming language
The const keyword in java programming language
We will learn in this tutorial about The const keyword in Java programming language
const is a reserved word in Java language because it is not allowed to be used in Java programmer in coding. In Java programming language reserved words cannot be used as object or variables names in a Java program because they’re already used by the syntax of the Java programming language
program 1
This program generates a compile-time error
const means by constant(never can change already assigned value)
const is used in the keyword in C++/keyword in C language. but in java language, const keyword replace by final keyword
There are other Java language keywords that are similar to this keyword
float keyword in Java
Suggested for you
Usage of this statement in the Java language