Which of the following exception will be thrown due to the statement given here?
int array[] = new int[-2];
A. NullPointerExceptionGiven the code fragment:

and the requirements of the application:
1.
It must display the menu.
2.
It must print the option selected.
3.
It must continue its execution till it reads `0'.
Which code fragment can be used to meet the requirements?

Given: What is the result?

Given the class definitions:

And the code fragment of the main() method,

What is the result?
A. Java Java JavaGiven the code fragment:

What is the result?
A. 2 4Given:
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
A. Cricket() { super(11, "Cricket", "Condidtion OK"); num_umpires =3; num_substitutes=2; }Give: What is the result?

Given the code fragment:

What is the result?
A. Invalid NameGiven:
import java.util.*;
public class Ref {
public static void main(String[] args) {
StringBuilder s1 = new StringBuilder("Hello Java!");
String s2 = s1.toString();
List
lst.add(s2);
System.out.println(s1.getClass());
System.out.println(s2.getClass());
System.out.println(lst.getClass());
}
}
What is the result?
A. class java.lang.String class java.lang.String class java.util.ArrayListGiven:

What is the result?
A. 0:0 100:0Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-808 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.