Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free GIAC GSSP-Java Practice Exam with Questions & Answers | Set: 4

Questions 31

Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code.

<web-app>

<error-page>

<exception-type>java.lang.Throwable</exception-type>

<location> Error.jsp </location>

</error-page>

<error-page>

<exception-type> javax.security.auth.RefreshFailedException</exception-type>

<location> RefreshFailed.jsp </location>

</error-page>

</web-app>

Which of the following statements is true about the deployment descriptor code given above?

Options:
A.

It is not possible to declare two error-page code in the web-app element.

B.

The error-page element does not belong to the web-app element.

C.

Any exception other than RefreshFailedException will display the Error.jsp page.

D.

All exceptions will display the Error.jsp page.

GIAC GSSP-Java Premium Access
Questions 32

Which of the following init() method calls initializes a cipher object with a key in the SECRET_MODE?

Options:
A.

cipher.init(2, key);

B.

cipher.init(1, key);

C.

cipher.init(3, key);

D.

cipher.init(4, key);

Questions 33

Which of the following elements contains the element in the deployment descriptor?

Options:
A.

B.

C.

<web-app>

D.

E.

Questions 34

Which of the following statements about exceptions in message-driven beans are true?

Each correct answer represents a complete solution. Choose two.

Options:
A.

Message-driven beans must not throw any application exception.

B.

The message-listener interface of a message-driven bean cannot generate system exceptions.

C.

The message-listener interface of a message-driven bean can throw the

java.rmi.RemoteException.

D.

The isCallerInRole() method called on a message-driven bean will throw an exception.

E.

Message-driven beans must not throw any checked exception.

Questions 35

Which of the following permission classes is an abstract class ancestor of all permissions and defines the essential functionalities required for all permissions?

Options:
A.

java.security.Permissions

B.

java.security.PermissionCollection

C.

java.security.UnresolvedPermission

D.

java.security.Permission

Questions 36

Which of the following pieces of codes will be placed at the line XXX to successfully compile the given class?

public interface Publication

{

String GetDetails();

}

public class Book implements Publication

{

//line XXX

}

Options:
A.

public String GetDetails(){}

B.

Object GetDetails(){}

C.

long GetDetails(){}

D.

private String GetDetails(){}

Questions 37

Which of the following is a Permission class whose permissions have no actions, and allows suppressing the standard Java programming language access checks?

Options:
A.

java.awt.RuntimePermission

B.

java.security.SecurityPermission

C.

java.lang.reflect.ReflectPermission

D.

java.lang.AllPermission

Questions 38

Which of the following statements about ServletContext attributes is true?

Options:
A.

They are not thread-safe but can be made thread-safe by synchronizing the service() method.

B.

They are not thread-safe but can be made thread-safe by applying a lock on the context.

C.

They are thread-safe.

D.

They are not thread-safe but can be made thread-safe by applying a lock on the servlet.

Questions 39

You have the following code of a PreparedStatement.

PreparedStatement stm = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?");

Which of the following statements are true about a PreparedStatement?

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

Options:
A.

The executeUpdate() method executes the SQL query in the PreparedStatement object and returns the ResultSet object generated by the query.

B.

A PreparedStatement reduces execution time if it is required to execute the SQL statementmultiple times.

C.

When the executeQuery() method is used to execute a DDL statement, such as in creating a table, it returns the int 0.

D.

It is illegal for an instance of a PreparedStatement to contain a SQL statement that has already been compiled.

Questions 40

Which of the following circumstances can prevent the execution of code in a finally block?

Each correct answer represents a complete solution. Choose two.

Options:
A.

An exception arising in the try block that precedes the finally block.

B.

An exception arising in the finally block itself.

C.

No exception condition arising in the try block that precedes the finally block.

D.

The use of the System.exit(0); statement in the finally block.

Exam Code: GSSP-Java
Certification Provider: GIAC
Exam Name: GIAC Secure Software Programmer – Java
Last Update: Sep 12, 2025
Questions: 275

GIAC Related Exams

GIAC Free Exams

GIAC Free Exams
Prepare for GIAC certification with free access to reliable study resources and practice tests at Examstrack.