Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

1z0-819 Exam Dumps - Java SE 11 Developer

Go to page:
Question # 25

What makes Java dynamic?

A.

At runtime, classes are loaded as needed, and new code modules can be loaded on demand.

B.

The runtime can process machine language sources as well as executables from different language compilers.

C.

The Java compiler uses reflection to test if class methods are supported by resources of a target platform.

D.

The Java compiler preprocesses classes to run on specific target platforms.

Full Access
Question # 26

Which two statements correctly describe capabilities of interfaces and abstract classes? (Choose two.)

A.

Interfaces cannot have protected methods but abstract classes can.

B.

Both interfaces and abstract classes can have final methods.

C.

Interfaces cannot have instance fields but abstract classes can.

D.

Interfaces cannot have static methods but abstract classes can.

E.

Interfaces cannot have methods with bodies but abstract classes can.

Full Access
Question # 27

Given:

What is the result?

A.

The compilation fails.

B.

Y@<< hashcode>>

C.

Null

D.

HH

Full Access
Question # 28

Given:

Automobile.java

Car.java

What must you do so that the code prints 4?

A.

Remove the parameter from wheels method in line 3.

B.

Add @Override annotation in line 2.

C.

Replace the code in line 2 with Car ob = new Car();

D.

Remove abstract keyword in line 1.

Full Access
Question # 29

Given:

Which two statements can be added at line 1 in Bar to successfully compile it? (Choose two.)

A.

public List foo(Set m) { ... }

B.

public ArrayList foo(Set m) { ... }

C.

public List foo(TreeSet m) { ... }

D.

public List foo(Set m) { ... }

E.

public List foo(Set m) { ... }

F.

public ArrayList foo(Set m) { ... }

Full Access
Question # 30

Given the code fragment:

What is the result?

A.

0 8 10

B.

0

C.

The code prints nothing.

D.

0 4 9

E.

0 8

Full Access
Question # 31

Given:

You want the code to produce this output:

John

Joe

Jane

Which code fragment should be inserted on line 1 and line 2 to produce the output?

A.

Insert Comparator on line 1.

Insert

public int compare(Person p1, Person p2) {

return p1.name.compare(p2.name);

}

on line 2.

B.

Insert Comparator on line 1.

Insert

public int compareTo(Person person) {

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

}

on line 2.

C.

Insert Comparable on line 1.

Insert

public int compare(Person p1, Person p2) {

return p1.name.compare(p2.name);

}

on line 2.

D.

Insert Comparator on line 1.

Insert

public int compare(Person person) {

return person.name.compare(this.name);

}

on line 2.

Full Access
Question # 32

Given:

What is the output?

A.

A compilation error is thrown.

B.

Message from Copier: Attempt00

C.

Message from Abstract Copier: Attempt00

D.

A runtime error is thrown.

Full Access
Go to page: