Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?
A. SAXNotSupportedException
B. SAXNotRecognizedException
C. NullPointerException
D. IllegalArgumentException
Which of the following methods belongs to the Refreshable interface?
A. commit
B. destroy
C. isReadOnly
D. isCurrent
Which of the following exceptions is thrown to indicate that a servlet is temporarily unavailable?
A. ServletException
B. ApplicationException
C. IllegalStateException
D. IOException
E. UnavailableException
F. IllegalAccessException
Which of the following is the return type of the getInitParameter() method of the ServletContext interface?
A. Enumeration
B. String
C. String array
D. ServletContext
E. Integer
Which of the following tags is used to include resources from within the same servlet container?
A.
B.
C.
D.
Which of the following attributes of the
A. value
B. flush
C. name
D. page
Which of the following exceptions will be thrown if the checkSecurityAccess() method uses an empty target as its parameter value?
A. NullPointerException
B. SecurityException
C. NoArgumentException
D. IllegalArgumentException
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.
A. encodeURL
B. encodeRedirectURL
C. sendRedirect
D. getRequestURL()
You work as a Software Developer for NewTech Inc. You write a bean class using Enterprise JavaBeans
3.0. The class uses the @DeclareRoles ("ADMIN, HR, DBA, USER") 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.
A. The isCallerInRole() method
B. The getCallerPrincipal() method
C. The @RolesAllowed("ADMIN") annotation
D. The @PermitAll annotation
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.
A. The StringBuffer class offers faster performance than the StringBuilder class.
B. The StringBuffer class is thread-safe while the StringBuilder class is not.
C. A character in a string can be searched using the indexOf() operator.
D. The return type of the trim() method present in the String class is void.
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.