Question: What will this small program output? class Main { private static void foo() { X = 11; private static int x = 1; public static
What will this small program output? class Main { private static void foo() { X = 11; private static int x = 1; public static void main(String[] args) { foo(); System.out.println(x); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
