What is the default value of string in Java. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the default value of string in Java.

null or " "

10th Sep 2019, 4:56 PM
Dinesh Kumar
Dinesh Kumar - avatar
2 Answers
+ 3
Null, from experience lol
10th Sep 2019, 4:57 PM
KfirWe
KfirWe - avatar
+ 1
By the way: not only for String, for all objects
10th Sep 2019, 10:00 PM
Denise Roßberg
Denise Roßberg - avatar