Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

Given:

How many LocalDate objects are created in this example?

A.

2

B.

3

C.

4

D.

5

Which two safely validate inputs? (Choose two.)

A.

Delegate numeric range checking of values to the database.

B.

Accept only valid characters and input values.

C.

Use trusted domain-specific libraries to validate inputs.

D.

Assume inputs have already been validated.

E.

Modify the input values, as needed, to pass validation.

Given:

Which would cause s to be AQCD?

A.

s.replace(s.indexOf(“A”), s.indexOf(“C”), “Q”);

B.

s.replace(s.indexOf(“B”), s.indexOf(“C”), “Q”);

C.

s.replace(s.indexOf(“B”), s.indexOf(“B”), “Q”);

D.

s.replace(s.indexOf(“A”), s.indexOf(“B”), “Q”);

Which code fragment added to line 1 enables the code to compile and print Hello Joe?

A)

B)

C)

D)

Your organization makes mlib.jar available to your cloud customers. While working on a new feature for mlib.jar, you see that the customer visible method

public void enableService(String hostName, String portNumber)

executes this code fragment

and you see this grant is in the security policy file:

What security vulnerability does this expose to your cloud customer's code?

A.

privilege escalation attack against the OS running the customer code

B.

SQL injection attack against the specified host and port

C.

XML injection attack against any mlib server

D.

none because the customer code base must also be granted SocketPermission

E.

denial of service attack against any reachable machine

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.

Which two modules include APIs in the Java SE Specification? (Choose two.)

A.

java.logging

B.

java.desktop

C.

javafx

D.

jdk.httpserver

E.

jdk.jartool

Which line of code results in a compilation error?

A.

line n1

B.

line n3

C.

line n2

D.

line n4

Given:

What is the result?

A.

Ans: a

B.

The compilation fails

C.

Ans:

D.

A java:util. NsuchElementException is thrown at runtime

Given:

Which two are correct? (Choose two.)

A.

Option A

B.

Option B

C.

Option C

D.

Option D