Pass the GIAC GIAC Certification GSSP-Java Questions and answers with CertsForce

Viewing page 8 out of 9 pages
Viewing questions 71-80 out of questions
Questions # 71:

Which of the following statements are true?

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

Options:

A.

StringBuffer is thread safe, but StringBuilder is not.


B.

The String class is final.


C.

StringBuilder offers faster performance than StringBuffer.


D.

The size of the String can be obtained using the length property.


Questions # 72:

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

Options:

A.

j_security_check


B.

password


C.

j_pw


D.

jid


E.

_jid


F.

jpassword


Questions # 73:

According to the EJB programming restrictions, which of the following should be used to access the files or directories?

Options:

A.

A resource manager API


B.

An output device such as screen display


C.

An enterprise bean


D.

An input device such as a keyboard


Questions # 74:

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?

Options:

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" %>


Questions # 75:

Which of the following elements can be used to obtain a database connection?

Options:

A.


B.


C.


D.


E.


Questions # 76:

Which of the following listeners causes an object of the implementing class to be notified when it is added to or removed from a session?

Options:

A.

HttpSessionListener


B.

HttpSessionActivationListener


C.

HttpSessionAttributeListener


D.

HttpSessionBindingListener


Questions # 77:

Consider the given lines of codE.

package ucert

class memberaccess

{

public int mem = 10;

}

Which of the following can directly access the variable mem?

Options:

A.

Any class


B.

Any class that extends the memberaccess class


C.

Only the memberaccess class


D.

Any class in the package ucert


Questions # 78:

Which of the following exceptions will a compiler throw when a number is divided by zero?

Options:

A.

ArithmeticException


B.

I/OException


C.

ArrayIndexOutOfBoundsException


D.

NullPointerException


Questions # 79:

Which of the following statements is true about the Java synchronized keyword?

Options:

A.

It prevents multiple threads from accessing a block of code at the same time.


B.

It allows the class to be loaded as soon as the JRE starts.


C.

It prevents multiple developers from code redundancy.


D.

It allows two different functions to execute in a shared manner.


Questions # 80:

Which of the following methods of the HttpServletResponse interface is used for URL rewriting?

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

Options:

A.

encodeURL


B.

encodeRedirectURL


C.

sendRedirect


D.

getRequestURL()


Viewing page 8 out of 9 pages
Viewing questions 71-80 out of questions