Important Java Mcq 1

A Java variable is the name of a

a. data value stored in memory that can change its value but cannot change its type during the program’s execution

b. data type stored in memory

c. memory block that can change its value but cannot change its type

d. data value stored in memory that cannot change its value but cannot change its type during the program’s execution

Answer:

a. data value stored in memory that can change its value but cannot change its type during the program’s execution

Explanation:

A variable in java cannot be redeclared but we can reinitialize it.
This means we can change the value of the variable but we can change its type from one to another.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?