0
Do variables contain garbage in Java ?
6 Réponses
+ 1
Yes they are initialized at first with a garbage value I think
+ 1
No.. it will give a compilation error since it has not been initialised
0
it's not garbage value.. it's initial value :p
0
there is no garbage value in java althought there may be initialized the variables
0
No java dsnt hve a garbage value... it will show compile time error
0
No there is no garbage value in Java . Even variables in class are initialize to 0, if you don't initialize them.