Home »
MCQs »
Java MCQs
Which of the following is the correct syntax to create a variable in Java?
13. Which of the following is the correct syntax to create a variable in Java?
- var name;
- int name;
- var name int;
- All of these
Answer: B) int name;
Explanation:
Read here: Java variable declarations