[Free] 2017(Sep) EnsurePass Pass4sure GIAC GSSP-Java Dumps with VCE and PDF 61-70

EnsurePass
2017 Sep GIAC Official New Released GSSP-Java
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/GSSP-Java.html

GIAC Secure Software Programmer – Java

Question No: 61 – (Topic 1)

Which of the following is a mandatory sub-element of the lt;web-resource-collectiongt; element of the deployment descriptor?

  1. lt;web-resource-namegt;

  2. lt;descriptiongt;

  3. lt;http-methodgt;

  4. lt;url-patterngt;

Answer: A

Question No: 62 – (Topic 1)

Which of the following statements are true?

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

  1. StringBuffer is thread safe, but StringBuilder is not.

  2. The String class is final.

  3. StringBuilder offers faster performance than StringBuffer.

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

Answer: A,B,C

Question No: 63 – (Topic 1)

The following JSP scriptlet is given.

lt;% response.setContentType(quot;text/html; charset=ISO-8859-1quot;); %gt;

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

  1. lt;%@ include contentType=quot;text/html; pageEncoding=ISO-8859-1quot; %gt;

  2. lt;%@ include contentType=quot;text/html; charset=ISO-8859-1quot; %gt;

  3. lt;%@ page contentType=quot;text/html; charset=ISO-8859-1quot; %gt;

  4. lt;%@ taglib contentType=quot;text/html; pageEncoding=ISO-8859-1quot; %gt;

Answer: C

Question No: 64 – (Topic 1)

You write the following code.

class Father {public void Method() {System.out.println(quot;I am Fatherquot;);}}

public class Son extends Father {public static void main(String argv[]) {Son son = new Son();son.Method();}

private void Method() {System.out.println(quot;I am Sonquot;);}}

Which of the following will be the result, when you try to compile and run the code?

  1. I am Father will be displayed as the output.

  2. A runtime error will result.

  3. I am Son will be displayed as the output.

  4. The code will execute but without displaying any output.

  5. A compile-time error will result.

Answer: E

Question No: 65 – (Topic 1)

Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error?

abstract class P {} //1 private class Q {} //2 static class R {} //3 transient class S {} //4

  1. Line 3

  2. Line 1

  3. Line 2

  4. Line 4

Answer: B

Question No: 66 – (Topic 1)

Which of the following statements about the lt;auth-constraintgt; element are true? Each correct answer represents a complete solution. Choose all that apply.

  1. It is an optional sub-element of the lt;security-constraintgt; element.

  2. It has lt;role-namegt; and lt;role-typegt; as its sub-elements.

  3. If the lt;auth-constraintgt; element is not present, all users can access the resource.

  4. If the lt;auth-constraintgt; element has no lt;role-namegt; sub-element, all users can access the resource.

Answer: A,C

Question No: 67 – (Topic 1)

Which of the following methods is used to authenticate the users, and if the user has not been authenticated, the method returns false?

  1. getCallerPrincipal()

  2. getRemoteUser()

  3. isUserInRole()

  4. getCallerIdentity()

Answer: C

Question No: 68 – (Topic 1)

Which of the following mechanisms is closely related to authorization?

  1. Sending data so that no one can alter it on the way.

  2. Allowing access to a particular resource.

  3. Verifying username and password.

  4. Sending secret data such as credit card information.

Answer: B

Question No: 69 – (Topic 1)

You work as a Programmer for InfoTech Inc. You develop two html pages named authenticate.jsp and error.jsp, which are deployed directly at the root of the Web application named Authentication. Which of the following deployment descriptor code declarations will be used to ensure that the error.jsp page will be displayed automatically if the client is not authenticated?

  1. lt;login-configgt;

    lt;auth-methodgt;FORMlt;/auth-methodgt;

    lt;form-login-configgt;

    lt;form-login-pagegt;/authenticate.jsplt;/form-login-pagegt;

    lt;form-error-pagegt;/error.jsplt;/form-error-pagegt;

    lt;/form-login-configgt;

    lt;/login-configgt;

  2. lt;user-data-constraintgt;

    lt;auth-methodgt;FORMlt;/auth-methodgt;

    lt;login-pagegt;/authenticate.jsplt;/login-pagegt;

    lt;form-error-pagegt;/error.jsplt;/form-error-pagegt;

    lt;/user-data-constraintgt;

  3. lt;auth-constraintgt;

    lt;auth-methodgt;FORMlt;/auth-methodgt;

    lt;login-pagegt;/authenticate.jsplt;/login-pagegt;

    lt;form-error-pagegt;/error.jsplt;/form-error-pagegt;

    lt;/auth-constraintgt;

  4. lt;error-pagegt;

lt;auth-methodgt;FORMlt;/auth-methodgt;

lt;form-login-pagegt;/authenticate.jsplt;/form-login-pagegt;

lt;locationgt;/error.jsplt;/locationgt;

lt;/error-pagegt;

Answer: A

Question No: 70 – (Topic 1)

Which of the following are advantages of client-side JavaScript? Each correct answer represents a complete solution. Choose two.

  1. It is fast.

  2. It provides graphical components.

  3. It is secure.

  4. It provides form-validation at client side.

Answer: A,D

100% Free Download!
Download Free Demo:GSSP-Java Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass GSSP-Java Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE