Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free GIAC GSSP-Java Practice Exam with Questions & Answers | Set: 6

Questions 51

You develop an application. Now you want to ensure that data is sent between client and server in such a way that it cannot be changed in transit. Which of the following element declarations will be specified to satisfy the requirement of the application?

Options:
A.

INTEGRAL

B.

CONFIDENTIAL

C.

NONE

D.

<auth-constraint>

CONFIDENTIAL

</auth-constraint>

GIAC GSSP-Java Premium Access
Questions 52

You work as a Software Developer for UcTech Inc. You want the deployment descriptor to contain entries for the authentication type and the security realm. In order to accomplish this, you have to use the sub-elements of the element. Which of the following will you use?

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

Options:
A.

<auth-name>

B.

C.

<auth-type>

D.

<form-login-config>

E.

F.

G.

<auth-method>

Questions 53

Which of the following code fragments will compile without error?

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

Options:
A.

boolean a = false;

if(a)

System.out.println(a);

B.

int a = 10;

if(a != 10)

System.out.println(a);

C.

int a = 0;

if(a)

System.out.println(a);

D.

boolean a = true;

if(!a);

Questions 54

Peter works as a Programmer in Magi Net Inc. He writes the following code.

1. class Ques0190{

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

3. byte a = 100;

4. switch(a){

5. case 10.

6. System.out.println("ten");

7. case 100.

8. System.out.println("hundred");

9. case 1000.

10. System.out.println("thousand");

11. }

12. }

13. }

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

Options:
A.

The code will compile and execute displaying hundred.

B.

The code will not compile because 1000 is not assignment compatible with a byte data type.

C.

The code will not compile because the argument to the switch cannot be a primitive type byte value.

D.

The code will compile and execute displaying hundred followed by thousand.

Questions 55

Which of the following instantiation code will you use to create an instance of the inner class

SunAssociate, which is written inside the Developer outer class?

Options:
A.

SunAssociate iterator = new SunAssociate();

B.

Developer.SunAssociate;

C.

SunAssociate.Developer NestedObject = new SunAssociate. Developer();

D.

SunAssociate iterator = this.new SunAssociate();

Questions 56

Mark works as a Programmer for InfoTech Inc. He creates a method named roomBooking() and this method throws IndexOutOfBoundsException. Which of the following roles will automatically handle the exception?

Options:
A.

Bean Provider

B.

Application Assembler

C.

Bean Deployer

D.

Container

Questions 57

Which of the following statements about a JAR file are true?

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

Options:
A.

It cannot be accessed through a class path, nor they can be used by java and javac.

B.

It is used to compress and archive data.

C.

It can be moved from one computer to another.

D.

It is created by using the jar command.

Questions 58

Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error?

abstract class P {} //1

private class Q {} //2

static class R {} //3

transient class S {} //4

Options:
A.

Line 3

B.

Line 1

C.

Line 2

D.

Line 4

Questions 59

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

Options:
A.

freeMemory()

B.

gc()

C.

runFinalization()

D.

runFinalizers()

Questions 60

Which of the following statements are true?

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

Options:
A.

StringBuffer is thread safe, but StringBuilder is not.

B.

The String class is final.

C.

StringBuilder offers faster performance than StringBuffer.

D.

The size of the String can be obtained using the length property.

Exam Code: GSSP-Java
Certification Provider: GIAC
Exam Name: GIAC Secure Software Programmer – Java
Last Update: Sep 12, 2025
Questions: 275

GIAC Related Exams

GIAC Free Exams

GIAC Free Exams
Prepare for GIAC certification with free access to reliable study resources and practice tests at Examstrack.