GIAC Secure Software Programmer - Java - GSSP-JaVa무료 덤프문제 풀어보기
Which of the following exceptions is thrown if a class uses the clone() method but does not implement the Cloneable interface?
정답: D
Which of the following is a mandatory sub-element of the <web-resource-collection> element of the deployment descriptor?
정답: C
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?
<% response.setContentType("text/html; charset=ISO-8859-1"); %>
Which of the following directives is the equivalent directive for the scriptlet given above?
정답: A
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet.
1.public class Header
2.{
3.//code//
4.{
5.System.out.println("Print the code.");
6.super.finalize();
7.}
8.}
Which of the following header statements should be placed at line 3 to execute the program
successfully?
1.public class Header
2.{
3.//code//
4.{
5.System.out.println("Print the code.");
6.super.finalize();
7.}
8.}
Which of the following header statements should be placed at line 3 to execute the program
successfully?
정답: C
Which of the following elements indicates which users in specified roles are permitted access to a resource collection?
정답: B
Identify whether the given statement is true or false.
"When an exception occurs in a try block, each catch statement following the try block is inspected in sequential order, and the last one whose type matches that type of exception is executed."
"When an exception occurs in a try block, each catch statement following the try block is inspected in sequential order, and the last one whose type matches that type of exception is executed."
정답: B
Mark works as a Programmer for InfoTech Inc. He develops a code snippet for a class named
servletClassA that extends the HttpServlet class. Which of the following HttpServlet class methods are not required to be overridden by the servletClassA?
Each correct answer represents a complete solution. Choose all that apply.
servletClassA that extends the HttpServlet class. Which of the following HttpServlet class methods are not required to be overridden by the servletClassA?
Each correct answer represents a complete solution. Choose all that apply.
정답: C,D
Which of the following methods of the HttpSession interface can be called upon an invalidated session without throwing the IllegalStateException?
정답: B
You work as a Software Developer for NewTech Inc. You write a bean class called EmployeeBean. The class contains two methods, EmpSal() and EmpAttendance(). Both these methods can be accessed by the ADMIN role. The EmpSal() method can be accessed only by the HR role, while the EmpAttendance () method can be accessed only by the DBA role. You want the EmpAttendance() method to be accessed by the HR role also. However, no other roles in the class except ADMIN, DBA, and HR should be able to access the EmpAttendance() method. Which of the following steps will you take to accomplish the task?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
정답: A,B,D,E
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
정답: C,D
Mark works as an Application Developer for XYZ Solutions Inc. He writes the following code.
public class TestDemo{public static void main(String[] args){
{try{int x =0;int d= 5/x;}catch(Exception ex){System.out.println("Exception");}
catch(ArithmeticException ae){System.out.println("Arithmetic Exception");}}}
What is the result when Mark tries to compile and execute the code?
public class TestDemo{public static void main(String[] args){
{try{int x =0;int d= 5/x;}catch(Exception ex){System.out.println("Exception");}
catch(ArithmeticException ae){System.out.println("Arithmetic Exception");}}}
What is the result when Mark tries to compile and execute the code?
정답: C
Which of the following is a mandatory sub-element of the <web-resource-collection> element of the deployment descriptor?
정답: C
Which of the following classes implements the java.lang.Cloneable and java.lang.Runnable interfaces correctly?
정답: A
Which of the following exceptions will be thrown if the caller does not have permission to invoke the doAsPrivileged method?
정답: B
Which of the following authentications uses HTTPS (HTTP over SSL) to verify a user?
정답: D