Computer Science Doubt
This problem has been one of the biggest nightmares for me- Whenever I make Java programs sometimes I just write let’s say “int i;” but sometimes this is an error and it states “variable has not been initialised” , and i get confused, when shall we initialise the variable to its default value and when is it fine? Please answer