Which of the following is the correct way to declare a variable in Java?
PYQ DSSSB 2025
Which of the following is the correct way to declare a variable in Java?
- A.
let x = 10;
- B.
x = 10;
- C.
var x = 10;
- D.
int x = 10;
Attempted by 1143 students.
Sign up free to check your answer
Sign up freeLoading lesson…

