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
    :Apr 30, 2024

GIAC GIAC Information Security GSSP-JAVA Questions & Answers

  • Question 271:

    Which of the following statements correctly describe the features of the singleton pattern? Each correct answer represents a complete solution. Choose all that apply.

    A. Singletons are used to control object creation by limiting the number to one but allowing the flexibility to create more objects if the situation changes.

    B. Singletons can only be stateless, providing utility functions that need no more information than their parameters.

    C. A singleton class may disappear if no object holds a reference to the Singleton object, and it will be reloaded later when the singleton is needed again.

    D. The behavior of a singleton can be obtained by static fields and methods such asjava.lang.Math.sin (double).

  • Question 272:

    Which of the following deployment descriptor elements must contain the element as its mandatory sub-element?

    A.

    B.

    C.

    D.

  • Question 273:

    Given a code of a class named PrintString that prints a string.

    1.

    public class PrintString{

    2.

    public static void main(String args[]){

    3.

    /*insert code here */

    4.

    /* insert code here */

    5.

    System.out.println(str);

    6.

    }

    7.

    }

    Which of the following code fragments can be inserted in the class PrintString to print the output "4247"?

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

    A. StringBuilder str= new StringBuilder("123456789");str.delete(0,3).replace(1,3,"24").delete(4,6);

    B. StringBuffer str= new StringBuffer("123456789");str.delete(0,3).replace(1,3,"24").delete(4,6);

    C. StringBuffer str=new StringBuffer("123456789");str.substring(3,6).delete(1,2).insert(1,"24");

    D. StringBuilder str= new StringBuilder("123456789");str.deleteCharAt(6).replace(1,3,"24").delete(0,3);

    E. String str="123456789";str=(str-"123").replace(1,3,"24")-"89";

  • Question 274:

    Mark writes a class Practice.java. This class needs to access the com.bar.Test class that is stored in the Test.jar file in the directory /practice. How would you compile your code?

    A. javac -classpath /practice/Test.jar Practice.java

    B. javac -classpath /practice/ Practice.java

    C. javac -classpath /practice/Test.jar/com/bar Practice.java

    D. javac -classpath /practice Practice.java

  • Question 275:

    Which of the following statements is true?

    A. All UTF characters are eight bits long.

    B. All UTF characters are all sixteen bits long.

    C. All UTF characters are twenty four bits long.

    D. All bytecode characters are sixteen bits long.

    E. All unicode characters are sixteen bits long.

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.