Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > GIAC > GIAC Certifications > GSSP-JAVA > GSSP-JAVA Online Practice Questions and Answers

GSSP-JAVA Online Practice Questions and Answers

Questions 4

Which of the following elements are the subelements of the mime-mapping element in a deployment

descriptor file?

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

A. exception-type

B. error-code

C. extension

D. mime-type

E. servlet-class

Buy Now

Correct Answer: CD

Questions 5

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()

Buy Now

Correct Answer: AB

Questions 6

Which of the following methods is used to encrypt or decrypt data in a single step?

A. wrap()

B. update()

C. digest()

D. doFinal()

Buy Now

Correct Answer: D

Questions 7

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

1.

class Book

2.

{

3.

Short f1= 15;

4.

Book GetDetails(Book b1)

5.

{

6.

b1=null;

7.

return b1;

8.

}

9.

public static void main(String args[])

10.

{

11.

Book b1 = new Book();

12.

Book b2 = new Book();

13.

Book b3 = b1.GetDetails(b2);

14.

b1=null;

15.

//code

16.

}

17.

}

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

A. It cannot be determined.

B. 1

C. 2

D. 0

Buy Now

Correct Answer: C

Questions 8

What will be the output of the following code snippet?

class test22 { public static void main(String args[]) { String str= new String("Hello"); str.insert(3,"bye"); System.out.println(str); } }

A. It will display Hello.

B. It will display Helbyelo.

C. It will throw NFE.

D. It will generate a compile-time error.

Buy Now

Correct Answer: D

Questions 9

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

class iftest2

{public static void main(String args[])

{int x=0, y=1;if //code//{System.out.println("true");}}} Which of the following if statements are illegal if they

are placed at //code//?

A. (y == true)

B. (1)

C. (x == false)

D. (x == 1)

E. (x)

F. (x != y)

Buy Now

Correct Answer: ABCE

Questions 10

Which of the following methods of the HttpSession interface can be called upon an invalidated session without throwing the IllegalStateException?

A. getAttribute()

B. getServletContext()

C. getAttributesNames()

D. invalidate()

E. getLastAccessedTime()

Buy Now

Correct Answer: B

Questions 11

Wilbert works as a Software Developer for Wintos Inc. He writes the following code.

1.

public class tcf

2.

{

3.

public static void main(String[] args)

4.

{

5.

try

6.

{

7.

int x = 5 / 0;

8.

System.exit(0);

9.

}

10.

catch(ArithmeticException e)

11.

{

12.

System.out.println("Within catch");

13.

}

14.

finally

15.

{

16.

System.out.println("Within finally");

17.

}

18.

}

19.

}

What will happen when he tries to compile and execute the code?

A. It will compile and print Within catch as the output.

B. It will compile and execute successfully but will not print anything.

C. It will compile and print Within catch and Within finally as the output.

D. It will compile and print Within finally as the output.

Buy Now

Correct Answer: C

Questions 12

Which of the following statements about the isUserInRole() method are true? Each correct answer represents a complete solution. Choose all that apply.

A. It accepts a boolean argument.

B. It is mapped in the deployment descriptor using the element.

C. It belongs to the HttpServletResponse interface.

D. The sub-element of the element must match the sub-element of the element.

Buy Now

Correct Answer: BD

Questions 13

Which of the following is a valid constructor for the DataInputStream class?

A. DataInputStream(File file)

B. DataInputStream(FileInputStream fin)

C. DataInputStream(String str)

D. DataInputStream(FileInputStream fin, int size)

Buy Now

Correct Answer: B

Exam Code: GSSP-JAVA
Exam Name: GIAC Secure Software Programmer - Java
Last Update: Jul 03, 2025
Questions: 275

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.