0What is the output of the following Java code? public class Test { static int x = 5; public static void main(String[] args) { int x = 10; System.out.println(x + Test.x); } }A10B15C20DCompilation error Correct answer: B Join the discussion Report an error Share