Home / Programming MCQs / JAVA MCQs / Question

Q. Which is correct about an instance variable of type String?

(A) It defaults to an empty string.
(B) It defaults to null.
(C) It does not have a default value.
(D) It will not compile without initializing on the declaration line

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution


Login to discuss.