Important Java Mcq 1

Read only variables in java

a) Can be modified at runtime in non static constructor only.
b) Can be modified from both method and constructor.
c) Can never be modified as it behave as constant variable
d) All of the above

Answer

a) Can be modified at runtime in non static constructor only.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?