Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the GIAC Certification GSSP-Java Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam GSSP-Java Premium Access

View all detail and faqs for the GSSP-Java exam


765 Students Passed

96% Average Score

90% Same Questions
Viewing page 3 out of 9 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which of the following actions can you take to seal two packages, PackageA and PackageB, in the JAR file MyJar.jar?

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

Options:

A.

Execute the following command.

jar cvf MyJar.jar Manifest.txt MyPackage/*.class

B.

Create a text file named Manifest.txt with the following contents.

Name. myCompany/*Sealed. true

C.

Execute the following command.

jar cmf MyJar.jar Manifest.txt MyPackage/*.class

D.

Create a text file named Manifest.txt with the following contents.

Name. myCompany/PackageA/Sealed. true

Name. myCompany/PackageB/

Sealed. true

Questions # 22:

Which of the following methods belongs to the FilterConfig interface and ServletConfig interface both?

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

Options:

A.

getInitParameter()

B.

getServletContext()

C.

getFilterName()

D.

getInitParameterNames()

Questions # 23:

Sam works as a Software Developer for Gentech Inc. He writes the following code.

1. class TryFinallyTest {

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

3. try {

4. int i=15/0;

5. System.out.println("Testing Try");

6. }

7. catch(ArithmeticException ae) {

8. System.out.println("Arithmetic exception");

9. }

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

11. finally {

12. System.out.println("Must execute");

13. }

14. }

15. }

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

Options:

A.

It will compile successfully and run with output Arithmetic exception.

B.

It will compile successfully and run with output Must execute.

C.

It will compile successfully and run with output Correct.

D.

It will give a compile-time error.

Questions # 24:

Which of the following are valid class declarations?

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

Options:

A.

public abstract final Ques0160c

B.

public abstract class Ques0160a

C.

final public class Ques0160b

D.

native synchronized class Ques0160d

Questions # 25:

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;.;

Options:

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

Questions # 26:

What will be the output of the following program?

class Stringtest

{

public static void main(String args[])

{

String s= "test";

s.concat("paper");

System.out.println(s);

}

}

Options:

A.

It will display test.

B.

It will display testpaper.

C.

It will generate a compile-time error.

D.

It will display paper.

Questions # 27:

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?

Options:

A.

HttpSessionListener

B.

HttpSessionActivationListener

C.

HttpSessionAttributeListener

D.

HttpSessionBindingListener

Questions # 28:

Which of the following classes is an engine class that provides an opaque representation of cryptographic parameters?

Options:

A.

DSAPublicKeySpec

B.

AlgorithmParameterGenerator

C.

DSAParameterSpec

D.

AlgorithmParameters

Questions # 29:

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

1. public class Garbage

2. {

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

4. {

5. String line;

6. String first="it is a program";

7. String last="last argument";

8. String arg1=new String((args.length>0) ? "'" + args[0] + "'" . "no arguments");

9. line=arg1;

10. arg1=null;

11. line=first + line + last;

12. first=null;

13. System.out.println("line");

14. line=null;

15. last=null;

16. args=null;

17. }

18. }

Which of the following statements about the code snippet is true when an object is initially referenced with arg1, and it is eligible for garbage collection?

Options:

A.

After line 10.

B.

After line 15.

C.

After line 12.

D.

After line 11.

Questions # 30:

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

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

Options:

A.

A JAR file can be created without even using the f command.

B.

The 0 command is used for no compression of a JAR file.

C.

The t command of a JAR file is used to update the contents of a file.

D.

A JAR file can be extracted using the e command.

Viewing page 3 out of 9 pages
Viewing questions 21-30 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.