Question: Given the source code: public class Test public static void main(String args[]) { Test nc= new Test(); System.out.println(t): rct= nc.tv 4 5 6 } 7
Given the source code: public class Test public static void main(String args[]) { Test nc= new Test(); System.out.println(t): rct= nc.tv 4 5 6 } 7 8 int 9 10 Testo 11 } 12) Which one below is the correct answer and can be applied? O a. It compiles and prints out 1 Ob. It compiles and prints out: Error in line 10 Oc It compiles and prints out: Error in thread main d. It compiles and prints out: 0 Oe. It compiles and prints out Error in line 2 Of. It compiles and prints out 2 Og. It compiles and prints out null O n. The code hits an error and cannot compile. Exception in thread "main" java.lang
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
