Sobes.tech
Junior

What are the default values for variables initialized in Java?

sobes.tech AI

Answer from AI

Data Type Default Value
boolean false
char \u0000 (null character)
byte 0
short 0
int 0
long 0L
float 0.0f
double 0.0d
Any reference type (objects, arrays) null
What are the default values for variables initialized… - sobes.tech