Cyber Monday Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

GIAC GSSP-Java - GIAC Secure Software Programmer – Java

Page: 3 / 9
Total 275 questions

Which of the following rules must be followed while determining a class loader?

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

A.

A new instance of the AppletClassLoader is used while loading the first class of an applet.

B.

If the request to load a class is triggered by a reference to it from an existing class, the class loader for the existing class is asked to load the class.

C.

A new instance of the URLClassLoader is used while loading the first class of an application.

D.

The primordial class loader is used if java.lang.Class.ForName is directly called.

In which of the following cases is the GET method used to retrieve information?

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

A.

Using a hyperlink inside a Web page.

B.

Using a form with no method definition.

C.

Adding the request parameter to the URL.

D.

Requesting to retrieve a large amount of data.

Which of the following functions are performed by methods of the

HttpSessionActivationListener interface?

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

A.

Notifying the object when it is bound to a session.

B.

Notifying an attribute that a session has just migrated from one JVM to another.

C.

Notifying the object when it is unbound from a session.

D.

Notifying an attribute that a session is about to migrate from one JVM to another.

Which of the following methods belongs to the FilterConfig interface and ServletConfig interface both?

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

A.

getInitParameter()

B.

getServletContext()

C.

getFilterName()

D.

getInitParameterNames()

Which of the following elements are the subelements of the mime-mapping element in a deployment descriptor file?

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

A.

exception-type

B.

error-code

C.

extension

D.

mime-type

E.

servlet-class

John works as a Software Developer for VenTech Inc. He writes the following code using Java.

public class vClass extends Thread

{

public static void main(String args[])

{

vClass vc=new vClass();

vc.run();

}

public void start()

{

for(int k=0;k<20;k++)

{

System.out.println("The value of k = "+k);

}

}

}

What will happen when he attempts to compile and execute the application?

A.

The application will compile successfully and the values from 0 to 19 will be displayed as the output.

B.

A compile-time error will occur indicating that no run() method is defined for the Thread class.

C.

A runtime error will occur indicating that no run() method is defined for the Thread class.

D.

The application will compile successfully but will not display anything as the output.

Which of the following statements about a JAR file are true?

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

A.

It cannot be accessed through a class path, nor they can be used by java and javac.

B.

It is used to compress and archive data.

C.

It can be moved from one computer to another.

D.

It is created by using the jar command.

The following JSP scriptlet is given.

<% response.setContentType("text/html; charset=ISO-8859-1"); %>

Which of the following directives is the equivalent directive for the scriptlet given above?

A.

<%@ include contentType="text/html; pageEncoding=ISO-8859-1" %>

B.

<%@ include contentType="text/html; charset=ISO-8859-1" %>

C.

<%@ page contentType="text/html; charset=ISO-8859-1" %>

D.

<%@ taglib contentType="text/html; pageEncoding=ISO-8859-1" %>

Which of the following fields is required when a user is authenticated using FORM authentication?

A.

j_security_check

B.

password

C.

j_pw

D.

jid

E.

_jid

F.

jpassword

Fill in the______blank with the required interface name to complete the statement below.

An object of the interface is provided by the container to invoke the next filter in a chain of filters.