Assuming that the following two methods are written inside a…
Assuming that the following two methods are written inside a class named test, what is the output of the following code? public static void main(String[] args) { int a = 5; int b = 9; callMethod(a,b); System.out.println(“a = “+a+”\nb = “+b); } public static void callMethod(int a, int b) { a = a + 1; b = b + 5; System.out.println(“a = “+a+”\nb = “+b); }
Read Details