Sobes.tech
Junior

Met welke waarden worden variabelen standaard geïnitialiseerd in Java?

sobes.tech AI

Antwoord van AI

Gegevenstype Standaardwaarde
boolean false
char \u0000 (null-tekens)
byte 0
short 0
int 0
long 0L
float 0.0f
double 0.0d
Elke referentietype (objecten, arrays) null