[Free] 2017(Sep) EnsurePass Pass4sure GIAC GSSP-Java Dumps with VCE and PDF 51-60

EnsurePass
2017 Sep GIAC Official New Released GSSP-Java
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/GSSP-Java.html

GIAC Secure Software Programmer – Java

Question No: 51 – (Topic 1)

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(quot;Exceptionquot;);} catch(ArithmeticException ae){System.out.println(quot;Arithmetic Exceptionquot;);}}} What is the result when Mark tries to compile and execute the code?

  1. Exception

  2. An exception is thrown at runtime.

  3. Compilation fails.

  4. Arithmetic Exception

Answer: C

Question No: 52 – (Topic 1)

Which directory in JAR files is used to store package and extension configuration data?

  1. META-INF

  2. GAMMA-INF

  3. ZIP-INF

  4. TAR-INF

    Answer: A

    Question No: 53 – (Topic 1)

    Mark works as a Programmer for InfoTech Inc. He creates a program that uses the following code.

    1. class Book 2. {

  1. Short f1= 15;

  2. Book GetDetails(Book b1) 5. {

  1. b1=null;

  2. return b1; 8. }

9. public static void main(String args[])

10. {

  1. Book b1 = new Book();

  2. Book b2 = new Book();

  3. Book b3 = b1.GetDetails(b2);

  4. b1=null;

  5. //code

16. }

17. }

How many objects will be eligible for garbage collection when line 15 is reached?

  1. It cannot be determined.

  2. 1

  3. 2

  4. 0

Answer: C

Question No: 54 – (Topic 1)

Which of the following are valid thread state transitions?

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

  1. From running to ready.

  2. From ready to waiting.

  3. From running to waiting.

  4. From waiting to ready.

  5. From ready to running.

  6. From waiting to running.

    Answer: A,C,D,E

    Question No: 55 – (Topic 1)

    You work as a Programmer for InfoTech Inc. You write the following code.

    1. public class InnerDemo{

    2. public static void main(String[] args) {

    3. Car c = new Car();

    4. // insert code here

    5. e.test(); 6. }

7. }

  1. class Car{

  2. class Engine{

  3. void test() {System.out.println(quot;testquot;); }

11. }

12. }

Which of the following options should you add to line 4 so that the code compiles and produces the output quot;testquot;?

  1. Car.Engine e = c.new Engine();

  2. Engine e = c. new Engine();

  3. c.Engine e = Car.new Engine();

  4. Car.Engine e = Car.new Engine();

Answer: A

Question No: 56 – (Topic 1)

In which of the following cases is the GET method used to retrieve information?

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

  1. Using a hyperlink inside a Web page.

  2. Using a form with no method definition.

  3. Adding the request parameter to the URL.

  4. Requesting to retrieve a large amount of data.

Answer: A,B,C

Question No: 57 – (Topic 1)

Which of the following code is used to create an object of security manager?

  1. SecurityManager appsm = getClassContext();

  2. SecurityManager appsm = System.getSecurityDescriptor();

  3. SecurityManager appsm = System.getSecurityManager();

  4. SecurityManager appsm = getSecurityContext();

Answer: C

Question No: 58 – (Topic 1)

Which of the following methods returns a Cipher object that implements the specified transformation?

  1. getCallerIdentity()

  2. getObject()

  3. getHeader()

  4. getInstance()

    Answer: D

    Question No: 59 – (Topic 1)

    Mark works as a Programmer for InfoTech Inc. He develops the following code snippet.

    1. public class Header

2. {

3. //code// 4. {

  1. System.out.println(quot;Print the code.quot;);

  2. super.finalize(); 7. }

    8. }

    Which of the following header statements should be placed at line 3 to execute the program

    successfully?

    1. void finalize() throws Exception

    2. private void finalize() throws Exception

    3. protected void finalize() throws Throwable

    4. void finalize() throws Throwable

      Answer: C

      Question No: 60 – (Topic 1)

      Dennis works as a Programmer in Broadnet Inc. He writes the following program.

      1. public class Ques0307{

      2. public static void main(String[] argv){ 3. int arr[] = {1, 2, 3, 4};

  1. try{

  2. int k = 0;

6. for(; k lt; 4; k )

  1. arr[k] = arr[k] 1;

  2. System.out.println(quot;tryquot;);

9. }

  1. catch(ArrayIndexOutOfBoundsException a){

  2. System.out.println(quot;index quot; k quot; not foundquot;);

12. }

  1. catch(Exception e){

  2. System.out.println(quot;catch1quot;);

15. }

  1. finally{

  2. System.out.println(quot;finallyquot;);

18. }

19. }

20. }

What will happen when Dennis attempts to compile and execute the program?

  1. A compile-time error will occur.

  2. The program will display index 0 not found catch1 finally

  3. The program will display index 4 not found finally

  4. The program will display try finally

Answer: A

100% Free Download!
Download Free Demo:GSSP-Java Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass GSSP-Java Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE