Exam Details

  • Exam Code
    :GSSP-JAVA
  • Exam Name
    :GIAC Secure Software Programmer – Java
  • Certification
    :GIAC Information Security
  • Vendor
    :GIAC
  • Total Questions
    :275 Q&As
  • Last Updated
    :May 16, 2024

GIAC GIAC Information Security GSSP-JAVA Questions & Answers

  • Question 241:

    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.

  • Question 242:

    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

  • Question 243:

    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

  • Question 244:

    Mark works as a Programmer for InfoTech Inc. He wants to define the security constraint for an application that allows users with the role of Manager access to the POST method of all resources with the URL pattern /acme/Manager/*, and also allow users with the role of Editor access to the POST method of all resources with the URL pattern /acme/Editor/*. Which of the following code will be used to declare the security element?

    A. Manager/acme/Manager/*GETPOSTManagerEditor/acme/Editor/*GETPOSTEditor

    B. Manager/acme/Manager/*GETPOSTManagerGETPOSTEditor

    C. Manager/acme/Manager/*GETPOSTManagerEditor

    D. Manager/acme/Manager/*GETPOSTEditor/acme/Editor/*GETPOSTManager

  • Question 245:

    Which of the following sub-elements specifies which users in specified roles are permitted access to a resource collection?

    A.

    B.

    C.

    D.

  • Question 246:

    In which of the following directories will files be searched when the classpath is specified by the syntax below.-classpath uc\JavaFiles\NewFiles;uc\ServletFiles;.;

    A. The current directory, the NewFiles directory, and the ServletFiles directory

    B. The current directory, the uc directory, the NewFiles directory, and the ServletFiles directory

    C. The current directory, the uc directory, the JavaFiles directory, the NewFiles directory, and the ServletFiles directory

    D. The uc directory, the JavaFiles directory, the NewFiles directory, and the ServletFiles directory

  • Question 247:

    Which of the following is the appropriate deployment descriptor elements entry for the code given below?

    @RunAs("admin")

    @Stateless public class StudentBean implements Student { //more code ...

    }

    A. ....Student...admin.....

    B. ....Student...admin.....

    C. ....Student...< security-role-ref>admin.....

    D. ....Student...admin.....

  • Question 248:

    Which of the following methods is used to request that any pending finalizers be run for objects eligible for garbage collection?

    A. freeMemory()

    B. gc()

    C. runFinalization()

    D. runFinalizers()

  • Question 249:

    Martin works as a Programmer in Data Net Inc. He writes the following code.

    1.

    class Ques0191{

    2.

    public static void main(String[] argv){

    3.

    byte a = 1;

    4.

    switch(a+1){

    5.

    case 1.

    6.

    System.out.println("One");

    7.

    case 2.

    8.

    System.out.println("2");

    9.

    case 2.

    10.

    System.out.println("Two"); break;

    11.

    }

    12.

    }

    13.

    }

    What will happen when Martin attempts to compile and execute the code?

    A. The code will compile successfully, but a runtime error will occur because of the duplicate case label at line number 9.

    B. The code will not compile because of the duplicate case label at line number 9.

    C. The code will compile successfully and will execute displaying 2 followed by Two.

    D. The code will not compile because an argument to the switch must be a constant.

  • Question 250:

    John works as a Programmer for Technostar Inc. He writes the following code using Java.

    1.

    class WrapperClass{

    2.

    public static void main(String[] argv){

    3.

    String str2 = Double.toString(12);

    4.

    String str1 = Double.toHexString(12);

    5.

    System.out.println(str1+str2);

    6.

    }

    7.

    }

    What will happen when John attempts to compile and execute the code?

    A. It will not compile because the Double class does not contain the toHexString() method.

    B. It will compile and execute successfully and will display 8p312 as the output.

    C. It will compile and execute successfully and will display 0x1.8p312.0 as the output.

    D. It will not compile because the Double class does not contain the toString() method.

Tips on How to Prepare for the Exams

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.