Deal of the Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle 1Z0-809 Exam

Certification Provider: Oracle
Exam Name: Java SE 8 Programmer II
Duration: 150 Minutes
Number of questions in our database: 196
Exam Version: Feb. 02, 2023
1Z0-809 Exam Official Topics:
  • Topic 1: Develop Code That Uses Static Keyword On Initialize Blocks, Variables, Methods, And Classes
  • Topic 2: Develop Code To Extract Data From An Object Using Peek() And Map() Methods Including Primitive Versions Of The Map() Method
  • Topic 3: Implement Inheritance Including Visibility Modifiers And Composition/ Use Method References With Streams
  • Topic 4: Create And Use Arraylist, Treeset, Treemap, And Arraydeque Objects/ Override Hashcode, Equals, And Tostring Methods From Object Class
  • Topic 5: Search For Data By Using Search Methods Of The Stream Classes Including Findfirst, Findany, Anymatch, Allmatch, Nonematch
  • Topic 6: Save Results To A Collection Using The Collect Method And Group/Partition Data Using The Collectors Class
  • Topic 7: Work With Dates And Times Across Timezones And Manage Changes Resulting From Daylight Savings Including Format Date And Times Values
  • Topic 8: Create And Use Singleton Classes And Immutable Classes/ Use Java.Util.Comparator And Java.Lang.Comparable Interfaces
  • Topic 9: Develop Code That Uses Stream Data Methods And Calculation Methods/ Iterate Using Foreach Methods Of Streams And List
  • Topic 10: Create And Manage Date-Based And Time-Based Events Including A Combination Of Date And Time Into A Single Object Using Localdate, Localtime, Localdatetime
  • Topic 11: Define And Create And Manage Date-Based And Time-Based Events Using Instant, Period, Duration, And Temporalunit/ Filter A Collection By Using Lambda Expressions
  • Topic 12: Describe Stream Interface And Stream Pipeline/ Create Inner Classes Including Static Inner Class, Local Class, Nested Class, And Anonymous Inner Class
  • Topic 13: Use The Built-In Interfaces Included In The Java.Util.Function Package Such As Predicate, Consumer, Function, And Supplier
  • Topic 14: Use Enumerated Types Including Methods, And Constructors In An Enum Type/ Implement Polymorphism/ Create And Use A Generic Class
  • Topic 15: Develop Code That Declares, Implements And/Or Extends Interfaces And Use The @Override Annotation/ Develop Code That Uses The Optional Class
  • Topic 16: Develop Code That Uses Primitive Versions Of Functional Interfaces/ Develop Code That Uses Abstract Classes And Methods
  • Topic 17: Develop Code That Uses Binary Versions Of Functional Interfaces/ Use Autoclose Resources With A Try-With-Resources Statement
  • Topic 18: Develop Code That Uses The Unaryoperator Interface/ Create Custom Exceptions And Auto-Closeable Resources/ Lambda Built-In Functional Interfaces
  • Topic 19: Use Catch, Multi-Catch, And Finally Clauses/ Use Flatmap() Methods In The Stream API/ Develop Code That Uses The Final Keyword

Free Oracle 1Z0-809 Exam Actual Questions

The questions for 1Z0-809 were last updated On Feb. 02, 2023

Question #1

Given the code fragment:

List empDetails = Arrays.asList(''100, Robin, HR'', ''200, Mary, AdminServices'',''101, Peter, HR'');

empDetails.stream()

.filter(s-> s.contains(''r''))

.sorted()

.forEach(System.out::println); //line n1

What is the result?

Reveal Solution Hide Solution
Correct Answer: D

Question #2

Given:

class Vehicle implements Comparable{

int vno;

String name;

public Vehicle (int vno, String name) {

this.vno = vno,;

this.name = name;

}

public String toString () {

return vno + '':'' + name;

}

public int compareTo(Vehicle o) {

return this.name.compareTo(o.name);

}

and this code fragment:

Set vehicles = new TreeSet <> ();

vehicles.add(new Vehicle (10123, ''Ford''));

vehicles.add(new Vehicle (10124, ''BMW''));

System.out.println(vehicles);

What is the result?

Reveal Solution Hide Solution
Correct Answer: A

Question #3

Given:

class Student {

String course, name, city;

public Student (String name, String course, String city) {

this.course = course; this.name = name; this.city = city;

}

public String toString() {

return course + '':'' + name + '':'' + city;

}

public String getCourse() {return course;}

public String getName() {return name;}

public String getCity() {return city;}

and the code fragment:

List stds = Arrays.asList(

new Student (''Jessy'', ''Java ME'', ''Chicago''),

new Student (''Helen'', ''Java EE'', ''Houston''),

new Student (''Mark'', ''Java ME'', ''Chicago''));

stds.stream()

.collect(Collectors.groupingBy(Student::getCourse))

.forEach(src, res) -> System.out.println(res));

What is the result?

Reveal Solution Hide Solution
Correct Answer: B

Question #4

Given the code fragments:

class Employee {

Optional

address;

Employee (Optional

address) {

this.address = address;

}

public Optional

getAddress() { return address; }

}

class Address {

String city = ''New York'';

public String getCity { return city: }

public String toString() {

return city;

}

}

and

Address address = new Address;

Optional

addrs1 = Optional.ofNullable (address);

Employee e1 = new Employee (addrs1);

String eAddress = (addrs1.isPresent()) ? addrs1.get().getCity() : ''City Not

available'';

System.out.println(eAddress);

What is the result?

Reveal Solution Hide Solution
Correct Answer: C

Question #5

Given the code fragment:

public void recDelete (String dirName) throws IOException {

File [ ] listOfFiles = new File (dirName) .listFiles();

if (listOfFiles ! = null && listOfFiles.length >0) {

for (File aFile : listOfFiles) {

if (!aFile.isDirectory ()) {

if (aFile.getName ().endsWith (''.class''))

aFile.delete ();

}

}

}

}

Assume that Projects contains subdirectories that contain .class files and is passed as an argument to the recDelete () method when it is invoked.

What is the result?

Reveal Solution Hide Solution
Correct Answer: B


Unlock all 1Z0-809 Exam Questions with Advanced Practice Test Features:
  • Select Question Types you want
  • Set your Desired Pass Percentage
  • Allocate Time (Hours : Minutes)
  • Create Multiple Practice tests with Limited Questions
  • Customer Support
Get Full Access Now
Disscuss Oracle 1Z0-809 Topics, Questions or Ask Anything Related

Save Cancel