1. Home
  2. Oracle
  3. 1Z0-809 Exam Info
  4. 1Z0-809 Exam Questions

Unlock Your Oracle Java SE 8 Programmer II Potential: Master 1Z0-809 Now!

Ready to elevate your Java expertise and stand out in the competitive tech landscape? Our cutting-edge Oracle Java SE 8 Programmer II 1Z0-809 practice questions are your secret weapon. Crafted by industry veterans, these materials go beyond mere exam preparationthey're your gateway to mastering advanced Java concepts, from concurrency to lambdas. Whether you prefer the portability of PDFs, the convenience of web-based tools, or the robust features of desktop software, we've got you covered. Don't let imposter syndrome hold you back; join thousands of successful developers who've aced the exam with our resources. As enterprise Java evolves, your certified skills will open doors to exciting roles in cloud computing, big data, and IoT. Time is ticking, and opportunities are limited. Invest in your future today and transform from code novice to Java guru!

Question 1

Given:

public class Emp {

String fName;

String lName;

public Emp (String fn, String ln) {

fName = fn;

lName = ln;

}

public String getfName() { return fName; }

public String getlName() { return lName; }

}

and the code fragment:

List emp = Arrays.asList (

new Emp (''John'', ''Smith''),

new Emp (''Peter'', ''Sam''),

new Emp (''Thomas'', ''Wale''));

emp.stream()

//line n1

.collect(Collectors.toList());

Which code fragment, when inserted at line n1, sorts the employees list in descending order of fName and then ascending order of lName?


Correct : B


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 2

Given:

public class Test {

private T t;

public T get () {

return t;

}

public void set (T t) {

this.t = t;

}

public static void main (String args [ ] ) {

Test type = new Test<>();

Test type 1 = new Test ();//line n1

type.set(''Java'');

type1.set(100);//line n2

System.out.print(type.get() + '' '' + type1.get());

}

}

What is the result?


Correct : A


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 3

Given the code fragment:

Path path1 = Paths.get(''/app/./sys/'');

Path res1 = path1.resolve(''log'');

Path path2 = Paths.get(''/server/exe/'');

Path res1 = path1.resolve(''/readme/'');

System.out.println(res1);

System.out.println(res2);

What is the result?


Correct : C


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 4

Which statement is true about jav

a.util.stream.Stream?


Correct : B


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 5

Which two methods from the jav

a.util.stream.Stream interface perform a reduction operation? (Choose two.)


Correct : A, B


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Page:    1 / 42   
Total 208 questions