Q. Which keyword is used to define a constant in Java?

A
const
B
final
C
static
D
constant
Solution:

The final keyword is used to declare a constant variable in Java.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!