0

Default value

Can someone please tell me the default values of all primitive data types in java?

11th May 2019, 11:36 AM
AFParadox
AFParadox - avatar
3 Answers
+ 1
It's 0 for all numerical types, null for String and false for boolean Source: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
11th May 2019, 12:01 PM
Paul
0
Which language?
11th May 2019, 11:43 AM
HonFu
HonFu - avatar
0
In java
11th May 2019, 11:51 AM
AFParadox
AFParadox - avatar