Question

Which of the following is the correct way to declare a constant in Java?

A const int X = 10;
B readonly int X = 10;
C static X = 10;
D constant int X = 10;
E final int X = 10;
Practice Next

Hey! Ask a query