Oracle Java SE 8 Programmer II - 1z1-809 Free Exam Questions

QUESTION NO: 1
Given the code fragments:

and

What is the result?

Correct Answer: B Vote an answer
QUESTION NO: 2
Given:

and the code fragment:

What is the result?

Correct Answer: C Vote an answer
QUESTION NO: 3
Given:
class Book {
int id;
String name;
public Book (int id, String name) {
this.id = id;
this.name = name;
}
public boolean equals (Object obj) { //line n1
boolean output = false;
Book b = (Book) obj;
if (this.id = = b.id) {
output = true;
}
return output;
}
}
and the code fragment:
Book b1 = new Book (101, "Java Programing");
Book b2 = new Book (102, "Java Programing");
System.out.println (b1.equals(b2)); //line n2
Which statement is true?

Correct Answer: D Vote an answer
QUESTION NO: 4
You have been asked to create a ResourceBundle which uses a properties file to localize an application.
Which code example specifies valid keys of menu1 and menu2 with values of File Menu and View Menu?

Correct Answer: A Vote an answer
QUESTION NO: 5
Given the code fragment:

What is the result?

Correct Answer: D Vote an answer
QUESTION NO: 6
Given that these files exist and are accessible:

and given the code fragment:

Which code fragment can be inserted at line n1 to enable the code to print only /company/emp?

Correct Answer: A Vote an answer
QUESTION NO: 7
Given the code fragments :

and

What is the result?

Correct Answer: D Vote an answer
QUESTION NO: 8
Given the code fragment:
Stream<Path> files = Files.walk(Paths.get(System.getProperty("user.home"))); files.forEach (fName -> {//line n1 try { Path aPath = fName.toAbsolutePath();//line n2 System.out.println(fName + ":"
+ Files.readAttributes(aPath, Basic.File.Attributes.class).creationTime ());
} catch (IOException ex) {
ex.printStackTrace();
});
What is the result?

Correct Answer: D Vote an answer
QUESTION NO: 9
Given the code fragment:

What is the result?

Correct Answer: B Vote an answer

QUALITY AND VALUE

Actual4test Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.

Tested and Approved

We are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.

Easy to Pass

If you prepare for the exams using our Actual4test testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.

Try Before Buy

Actual4test offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.