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:Oct 16, 2026
Rating
100%

Question 1

View the exhibit:
public class Student {
public String name = "";
public int age = 0;
public String major = "Undeclared";
public boolean fulltime = true;
public void display() {
System.out.println("Name: " + name + " Major: " + major); }
public boolean isFullTime() {
return fulltime;
}
}
Which line of code initializes a student instance?

Question 2

Given:

What is result?

Question 3

Given the code snippet from a compiled Java source file:

Which command-line arguments should you pass to the program to obtain the following output?
Arg is 2

Question 4

Given:
class Test {
public static void main (String[] args) {
int day = 1;
switch (day) {
case "7":
System.out.print("Uranus");
case "6":
System.out.print("Saturn");
case "1":
System.out.print("Mercury");
case "2":
System.out.print("Venus");
case "3":
System.out.print("Earth");
case "4":
System.out.print("Mars");
case "5":
System.out.print("Jupiter");
}
}
}
Which two modifications, made independently, enable the code to compile and run?

Question 5

Which code fragment causes a compilation error?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.