InterviewSolution
Saved Bookmarks
| 1. |
Can Variables Be Used In Java Without Initialization? |
|
Answer» 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. 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. |
|