Java MCQs - Variables
Variable is the name of reserved location in memory which is used in programming language. In this list of mcqs you will cover all possible mcqs for Java variables
11. A variable declared inside the method is known as
A. Instance Variable
B. Class Variable
C. Local Variable
View Answer
Answer: C
12. A variable declared outside of a method is known as
A. Instance Variable
B. Class Variable
C. Local Variable
View Answer
Answer: A
13. A variable declared outside of a method with prefix static keyword is known as
A. Instance Variable
B. Class Variable
C. Local Variable
View Answer
Answer: B