Choose Skin

Can variables be used in Java without initialization?





Answered by Chhaya 

In Java, if a variable is used in a code without prior initialization by a valid value, program doesn’t compile and gives an error as no default value is assigned to variables in Java.


  Refine your Search

Category