java.lang. StackOverflowError
java.lang.IllegalStateException
java.lang.ExceptionlnlnitializerError
java.lang.ArraylndexOutOfBoundsException
第1题:
public class Foo implements Runnable ( public void run (Thread t) { system.out.printIn(“Running.”); } public static void main (String[] args) { new thread (new Foo()).start(); } ) What is the result?()
第2题:
Which declarations will allow a class to be started as a standalone program?()
第3题:
A.When compile, some error will occur.
B.When run, some error will occur.
C.Output is zero.
D.Output is null.
第4题:
public class Foo { static int[] a; static { a[0]=2; } public static void main( String[] args) {} } Which exception or error will be thrown when a programmer attempts to run this code?()
第5题:
public class Foo implements Runnable ( public void run (Thread t) { system.out.printIn(“Running.”); } public static void main (String args) { new thread (new Foo()).start(); } ) What is the result?()
第6题:
public class Test { public static void main (String args) { string foo = “blue”; string bar = foo; foo = “green”; System.out.printIn(bar); } } What is the result?()
第7题:
public class Alpha{ private static Character() ids; public static void main( String[] args){ ids = new Character[args.length]; for (int i=0; i
第8题:
以下是JAVA中正确的入口方法是? ()
第9题:
public class Test { public static void main(String[] args) { String str = NULL; System.out.println(str); } } What is the result?()
第10题:
11. class Converter { 12. public static void main(String[] args) { 13. Integer i = args[0]; 14. int j = 12; 15. System.out.println(”It is “ + (j==i) + “that j==i.”); 16. } 17. } What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()