Category:
Java data types interview questions and answers
The purpose of initializing a variable in Java is to assign it an initial value so that it can be safely used in program . By initializing a variable, it prevents runtime exceptions , avoid compilation errors and enhance safety & security.
