InterviewSolution
Saved Bookmarks
| 1. |
Write a Java program that accepts values for 2 variables (x, y) using static initialization and for another two variables (a, b) using dynamic initialization. Display the output of variables a and b. |
| Answer» TION:STATIC variable in Java is variable which BELONGS to the class and initialized only once at the start of the execution. It is a variable which belongs to of | |