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?
A. HttpSessionListener
B. HttpSessionActivationListener
C. HttpSessionAttributeListener
D. HttpSessionBindingListener
Which of the following fields must be present in the login page when using the form-based authentication?
Each correct answer represents a part of the solution. Choose two.
A. j_login
B. j_password
C. get_pw
D. j_pw
E. j_username
F. user_pw
Which of the following is a mandatory sub-element of the
A.
B.
C.
D.
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
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.
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" %>
You have written the following code snippet.
1.
public class Read {
2.
protected int ReadText(int x) { return 0; }
3.
}
4.
class Text extends Read {
5.
/*insert code here*/
6.
}
Which of the following methods, inserted independently at line 5, will compile? Each correct answer
represents a complete solution. Choose all that apply.
A. private int ReadText(long x) { return 0; }
B. protected long ReadText(int x, int y) { return 0; }
C. protected long ReadText(long x) { return 0; }
D. protected int ReadText(long x) { return 0; }
E. private int ReadText(int x) { return 0; }
F. public int ReadText(int x) { return 0; }
G. protected long ReadText(int x) { return 0; }
You work as a Software Developer for UcTech Inc. You create a session using the HttpSession interface.
You want the attributes to be informed when the session is moved from one JVM to another and also when
an attribute is added or removed from the session. Which of the following interfaces can you use to
accomplish the task?
Each correct answer represents a complete solution. Choose all that apply.
A. HttpSessionBindingListener
B. HttpSessionListener
C. HttpSessionActivationListener
D. HttpSessionAttributeListener
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
A. An inner class cannot be defined as private.
B. An inner class cannot be defined as protected.
C. An inner class can be defined as private.
D. An inner class can extend another class.
You work as a programmer for PassGuide.Inc. You have a session object named session1 with an attribute named Attribute1, and an HttpSessionBindingEvent object binding1 bound to session1. Which of the following will be used to retrieve Attribute1? Each correct answer represents a complete solution. Choose all that apply.
A. Object obj=binding1.getSession().getAttribute("Attribute1");
B. Object obj=binding1.getAttribute("Attribute1");
C. Long MyAttribute=session1.getAttribute("Attribute1");
D. String str1=session1.getAttribute("Attribute1");
E. Object obj=session1.getAttribute("Attribute1");
Which of the following methods causes the currently executing thread object to temporarily pause and allow other threads to execute?
A. sleep()
B. notify()
C. finalize()
D. interrupted()
E. yield()
F. notifyAll()
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only GIAC exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your GSSP-JAVA exam preparations and GIAC certification application, do not hesitate to visit our Vcedump.com to find your solutions here.