Online Access Free 1z1-808 Practice Test
| Exam Code: | 1z1-808 |
| Exam Name: | Java SE 8 Programmer I |
| Certification Provider: | Oracle |
| Free Question Number: | 398 |
| Posted: | May 29, 2026 |
Which of the following exception will be thrown due to the statement given here? int array[] = new int[-2];
What is the result?
Class StaticField {
static int i = 7;
public static void main(String[] args) {
StaticFied obj = new StaticField();
obj.i++;
StaticField.i++;
obj.i++;
System.out.println(StaticField.i + " "+ obj.i);
}
}
Given the code fragment:
Which two code fragments can be independently inserted at line n1 to enable the code to print the elements of the array in reverse order?
Given the code fragment:
StringBuilder sb = new StringBuilder ( ) ;
Sb.append ("world");
Which code fragment prints Hello World?