Oracle Certified Associate Java Se 8 Programmer · Free Practice Question Easy
Question 39
Which of the following statement declares a constant field in Java?
-
A
final static int x = 10; -
B
int x = 10; -
C
const int x = 10; -
D
static int x = 10;
Reveal correct answer
Correct answer: A
Explanation
Fields declared with final are constant fields.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
