最新的Oracle Java SE 8 Programmer I - 1z0-808免費考試真題
問題1
Given the code fragment:

Which two modifications, made independently, enable the code to compile?

Which two modifications, made independently, enable the code to compile?
正確答案: D,E
說明:(僅 VCESoft 成員可見)
問題2
Which is true about the switch statement?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題3
Given:

What is the result?


What is the result?

正確答案: B
問題4
Given:

Which is true?

Which is true?
正確答案: C
說明:(僅 VCESoft 成員可見)
問題5
Given the code fragment:

What is the result?

What is the result?
正確答案: C
說明:(僅 VCESoft 成員可見)
問題6
Given:

What is the result?

What is the result?
正確答案: B
問題7
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?
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?
正確答案: D
問題8
Which two are valid declarations of a two-dimensional array?
正確答案: B,C
問題9
Given the code fragment:

What is the result?

What is the result?
正確答案: D
說明:(僅 VCESoft 成員可見)
問題10
Given the code fragment:

What is the result?

What is the result?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題11
Which two features can be implemented in a Java application by encapsulating the entity classes used? (Choose two.)
正確答案: A,C
說明:(僅 VCESoft 成員可見)

