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

GIAC GSSP-Java - GIAC Secure Software Programmer – Java

Page: 5 / 9
Total 275 questions

Which of the following tags is used to include resources from within the same servlet container?

A.

B.

C.

D.

Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?

A.

IllegalArgumentException

B.

SAXNotSupportedException

C.

NullPointerException

D.

SAXNotRecognizedException

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 exceptions will be thrown if the checkSecurityAccess() method uses an empty target as its parameter value?

A.

NullPointerException

B.

SecurityException

C.

NoArgumentException

D.

IllegalArgumentException

Identify whether the given statement is true or false.

"A try statement can be placed inside the code block that follows another try statement."

A.

True

B.

False

The ______________ method of the EJBContext interface tests whether the client is a member of the role specified in the argument to the method.

A.

isMember()

B.

isAuthorized()

C.

getCallerPrincipal()

D.

isCallerInRole(String rolw)

E.

getUserTransaction()

Which of the following is the valid permission for a BasicPermission?

A.

*

B.

a*b

C.

*.com

D.

*java

Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?

A.

SAXNotSupportedException

B.

SAXNotRecognizedException

C.

NullPointerException

D.

IllegalArgumentException

Which of the following methods evaluates the global policy for the permissions granted to the

ProtectionDomain and tests whether the permission is granted?

A.

implies

B.

getPolicy

C.

isPolicy

D.

getType

The __________ interface accepts results from a SQL SELECT statement.

A.

Connection

B.

PreparedStatement

C.

DatabaseMetaData

D.

ResultSet