What is the result?
A.
Reading Card
Checking Card
B. Compilation fails only at line n1.
C. Compilation fails only at line n2.
D. Compilation fails only at line n3.
E. Compilation fails at both line n2...
What is the result?
A.
97 98
99 100 null null null
B.
91 98
99 100 101 102 103
C. Compilation fails.
D. A NullPointerException is thrown at runtime.
E. An ArraylndexOutOfBoundsException is thrown at ...
Which code fragment prints Hello world?
A.
sb.insert(0,"Hello ");
System.out.println(sb);
B.
sb.append(0,"Hello ");
System.out.println(sb);
C.
sb.add(0,"Hello ");
System.out.println(sb);
D.
sb.set(0,...
What is the result?
A. [green, red, yellow, cyan]
B. [green, blue, yellow, cyan]
C. [green, red, cyan, yellow]
D. Am IndexOutOfBoundsException is thrown at runtime