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: May. 16, 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 May. 16, 2023

Question #1

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?

Reveal Solution Hide Solution
Correct Answer: B

Question #2

Given the code fragment:

LocalDate valentinesDay =LocalDate.of(2015, Month.FEBRUARY, 14);

LocalDate next15days = valentinesDay.plusDays (15);

LocalDate nextYear = next15days.plusYears(1); // line n1

System.out.println(nextYear);

What is the result?

Reveal Solution Hide Solution
Correct Answer: D

Question #3

Given the code fragments:

interface CourseFilter extends Predicate {

public default boolean test (String str) {

return str.contains (''Java'');

}

}

and

List strs = Arrays.asList(''Java'', ''Java EE'', ''Embedded Java'');

Predicate cf1 = s - > s.length() > 3;

Predicate cf2 = new CourseFilter() { //line n1

public boolean test (String s) {

return s.startsWith (''Java'');

}

};

long c = strs.stream()

.filter(cf1)

.filter(cf2//line n2

.count();

System.out.println(c);

What is the result?

Reveal Solution Hide Solution
Correct Answer: D

Question #4

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 #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