+ 1

What is default value of local variable?

13th May 2019, 2:46 PM
Shailesh Kodulkar
Shailesh Kodulkar - avatar
4 Answers
+ 12
There's no default value for local variables in java, you must initialize them.
13th May 2019, 2:48 PM
voja
voja - avatar
+ 11
null Here, you will find all default values in java: https://blog.ajduke.in/2012/03/25/variable-initialization-and-default-values/
13th May 2019, 2:56 PM
voja
voja - avatar
+ 1
Thanks
13th May 2019, 2:56 PM
Shailesh Kodulkar
Shailesh Kodulkar - avatar
0
What is default value of object reference?
13th May 2019, 2:49 PM
Shailesh Kodulkar
Shailesh Kodulkar - avatar