[Free] 2017(Sep) CollectDumps Testking GIAC GSSP-Java Dumps with VCE and PDF 21-30

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

GIAC Secure Software Programmer – Java

Question No: 21 – (Topic 1)

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

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

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

  3. It prevents multiple developers from code redundancy.

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

Answer: A

Question No: 22 – (Topic 1)

Mark works as a Programmer for InfoTech Inc. He develops a Web application that takes input from users. Which of the following methods can be used by the client and server to validate the users input?

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

  1. Validation through Servlets on the server side

  2. Validation using JavaScript on the client side

  3. Validation through Java Applets on the client side

  4. Validation through XML on the server side

Answer: A,B

Question No: 23 – (Topic 1)

Which of the following are marker interfaces?

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

  1. The Clonable interface

  2. The Serializable interface

  3. The Comparable interface

  4. The Runnable interface

Answer: A,B

Question No: 24 – (Topic 1)

Which of the following rules must be followed while determining a class loader? Each correct answer represents a complete solution. Choose all that apply.

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

  2. 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.

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

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

Answer: A,B,C,D

Question No: 25 – (Topic 1)

Mark works as a Programmer for InfoTech Inc. He wants to develop a JMS API application that is used as a messaging service application. He writes the following createSession() method.

session = connection.createSession(false, 2);

Which of the following statements are true about the syntax?

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

  1. The client acknowledges a consumed message by calling the message#39;s acknowledge method.

  2. The acknowledge method can reduce session overhead by minimizing the work the session does to prevent duplicates.

  3. This method instructs the session to lazily acknowledge the delivery of messages.

  4. The session automatically acknowledges a client#39;s receipt of a message.

  5. If a message consumer consumes eight messages and then acknowledges the fourth message delivered, all eight messages are acknowledged.

Answer: A,E

Question No: 26 – (Topic 1)

Which of the following statements are true about object serialization?

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

  1. After deserialization, objects have the same state as it had when it was serialized.

  2. It uses ObjectOutputStream to deserialize objects.

  3. It uses the ObjectInput and ObjectOutput interfaces.

  4. An object will have the same state at deserialization as it had at the time it was serialized if all its superclasses are also serializable.

Answer: A,C,D

Question No: 27 – (Topic 1)

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.

  1. encodeURL

  2. encodeRedirectURL

  3. sendRedirect

  4. getRequestURL()

Answer: A,B

Question No: 28 – (Topic 1)

You work as a Software Developer for NewTech Inc. You write a bean class using Enterprise

JavaBeans 3.0. The class uses the @DeclareRoles (quot;ADMIN, HR, DBA, USERquot;) annotation to declare the security roles. The class contains a method named showResult(). You want to ensure that the ADMIN role is granted privilege to the showResult() method.

Moreover, if a role that is not allowed to access the method tries to call the method, an error message must be shown. Assuming that there is no security-related element in the deployment descriptor, which of the following will you use to accomplish the task?

Each correct answer represents a part of the solution. Choose two.

  1. The isCallerInRole() method

  2. The getCallerPrincipal() method

  3. The @RolesAllowed(quot;ADMINquot;) annotation

  4. The @PermitAll annotation

Answer: A,C

Question No: 29 – (Topic 1)

Which of the following statements about the String, StringBuffer, and StringBuilder classes are true?

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

  1. The StringBuffer class offers faster performance than the StringBuilder class.

  2. The StringBuffer class is thread-safe while the StringBuilder class is not.

  3. A character in a string can be searched using the indexOf() operator.

  4. The return type of the trim() method present in the String class is void.

Answer: B,C

Question No: 30 – (Topic 1)

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?

  1. HttpSessionListener

  2. HttpSessionActivationListener

  3. HttpSessionAttributeListener

  4. HttpSessionBindingListener

Answer: D

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

CollectDumps 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 CollectDumps IT Certification PDF and VCE