Please write down the output of the following java code: Question 1 class A { public void method(){ System.out.println("A"); } } class B extends A{ public void method(){ System.out.println("B"); } } public class Test { public static void main(String[] args) { A a = new A(); B b = new B(); ((A)b).method(); } } Question 2 public class Test2 { static String str1 = "Hello"; static String str2 = new String("Hello"); static String str3 = "Hello"; static String str4 = new String(str3); public static void main(String[] args) { System.out.println(str1==str2); System.out.println(str1==str3); System.out.println(str2=="Hello"); System.out.println(str3==str4); } } Question 3 public class Test3 { public static void exchange(int a, int b){ int temp = a; a = b; b = temp; } public static void main(String[] args) { int a = 1; int b = 2; exchange(a,b); System.out.println(a); } } Question 4 public class Test4 { public static void main(String[] args) { String hello = "Hello World"; hello.replaceAll("World", "China"); System.out.println(hello); } } Question 5 public class Test5 { public static void main(String[] args) { int a = 1, b=2; if(a > 1 & b-- ==1){ a++; } System.out.println("a = "+a); System.out.println("b = "+b); } }