Vidyalelo
Java Programming · Q13

Miscellaneous Java

Programming · Java Programming · question 13

Q13

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)
Answer
B.
Compilation Error
C.
1
D.
False

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board