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.
Answers
Answered by
1
Explanation:
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
Similar questions