OD
(Choose 1 answer)
Given the following. What is the result?
public class Example {
int x=10;
public static void main(String[] args) {
(new Example()).show();
}
public static void show(){
int x=5;
System.out.print("x="+x);
}
}
A. x=5
B. x=10
C. Compilation fails
D. Output is unpredictable
Exit 8