+91-85006-22255
What will be the output of the following program?
public class GuessCondition { static int a = 40; public static void main(String args[]) { System.out.print(a + " "); add(); System.out.print(a); } private static void add() { a = a + 40; }}
Topic: Static Keyword In Java
Read this topic Take test on this topic
Open In App