Examveda
Examveda

What is the default value of a member variable (field) of an object in Java if it is not explicitly initialized?

A. Depends on the data type (e.g., 0 for int, null for objects)

B. Compilation Error

C. 1

D. False

Answer: Option A


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java