Online Access Free 1Z0-853 Practice Test

Exam Code:1Z0-853
Exam Name:Java Standard Edition 5 Programmer Certified Professional Exam
Certification Provider:Oracle
Free Question Number:362
Posted:Sep 04, 2026
Rating
100%

Question 1

Given:
13.
public static void search(List<String> list) {
14.
list.clear();
15.
list.add("b");
16.
list.add("a");
17.
list.add("c");
18.
System.out.println(Collections.binarySearch(list, "a"));
19.
}
What is the result of calling search with a valid List implementation?

Question 2

Given:
10. interface Jumper { public void jump(); } ...
20. class Animal {} ...
30.
class Dog extends Animal {
31.
Tail tail;
32.
} ...
40.
class Beagle extends Dog implements Jumper{
41.
public void jump() {} 42. } ...
50.
class Cat implements Jumper{
51.
public void jump() {}
52.
}
Which three are true? (Choose three.)

Question 3

Which two statements are true about has-a and is-a relationships? (Choose two.)

Question 4

Given:
11.
rbo = new ReallyBigObject();
12.
// more code here
13.
rbo = null;
14.
/* insert code here */
Which statement should be placed at line 14 to suggest that the virtual machine expend effort toward recycling the memory used by the object rbo?

Question 5

Given:
11.
public static void main(String[] args) {
12.
try {
13.
args = null;
14.
args[0] = "test";
15.
System.out.println(args[0]);
16.
} catch (Exception ex) {
17.
System.out.println("Exception");
18.
} catch (NullPointerException npe) {
19.
System.out.println("NullPointerException");
20.
}
21.
}
What is the result?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.