Black Friday Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

Identify whether the given statement is true or false.

"When an exception occurs in a try block, each catch statement following the try block is inspected in sequential order, and the last one whose type matches that type of exception is executed."

A.

False

B.

True

Which of the following methods belongs to the Refreshable interface?

A.

commit

B.

destroy

C.

isReadOnly

D.

isCurrent

You work as a Software Developer for UcTech Inc. You create a session using the HttpSession interface. You want the attributes to be informed when the session is moved from one JVM to another and also when an attribute is added or removed from the session. Which of the following interfaces can you use to accomplish the task?

Each correct answer represents a complete solution. Choose all that apply.

A.

HttpSessionBindingListener

B.

HttpSessionListener

C.

HttpSessionActivationListener

D.

HttpSessionAttributeListener

Which of the following is the return type of the getInitParameter() method of the ServletContext interface?

A.

Enumeration

B.

String

C.

String array

D.

ServletContext

E.

Integer

Which of the following methods retrieves a single character from a string?

A.

trim()

B.

substring()

C.

charAt()

D.

indexOf()

The __________ interface accepts results from a SQL SELECT statement.

A.

Connection

B.

PreparedStatement

C.

DatabaseMetaData

D.

ResultSet

Which of the following classes enables a programmer to create an object and protect its confidentiality with a cryptographic algorithm?

A.

MAC

B.

SealedObject

C.

KeyGenerator

D.

SecretKeyFactory

Which of the following roles will release a servlet instance for garbage collection after the destroy method completes?

A.

Deployer

B.

Container

C.

Provider

D.

Assembler

Which of the following exceptions will be thrown by the validate method if the result type does not match the Source type, or if the specified source is neither SAXSource nor DOM Source?

A.

SAXException

B.

NullPointerException

C.

IllegalArgumentException

D.

IOException

Which of the following annotations specifies the roles that are allowed to invoke a particular bean method?

A.

@DenyAll

B.

@RolesAllowed

C.

@RunAs

D.

@DeclareRoles

E.

@PermitAll