| Exam Code/Number: | GSSP-JaVaJoin the discussion |
| Exam Name: | GIAC Secure Software Programmer - Java |
| Certification: | GIAC |
| Question Number: | 275 |
| Publish Date: | Jul 14, 2026 |
|
Rating
100%
|
|
Given the following directory structure.
Assuming that the current directory is com, which of the below options can be used to create a jar file called TestJar.jar that contains all the files from the directory testApp?
You work as a Software Developer for TechnoZen Inc. You create an application using Java. You define a method, named myMethod. You also define a class, named myClass, within myMethod.
Which of the following rules governs the access to the variables of the enclosing method?
You write the following code.
class Father {public void Method() {System.out.println("I am Father");}}
public class Son extends Father {public static void main(String argv[]) {Son son = new
Son();son.Method();}
private void Method() {System.out.println("I am Son");}}
Which of the following will be the result, when you try to compile and run the code?
Mark works as a Programmer for InfoTech Inc. He wants to develop a JMS API application that is used as a messaging service application. He writes the following createSession() method.
session = connection.createSession(false, 2);
Which of the following statements are true about the syntax?
Each correct answer represents a complete solution. Choose all that apply.
Mary works as a Software Developer for XYZ Inc. She writes the following code.
1.class Alpha {
2.public static class Beta { }
3.}
4.class Delta {
5.// insert code here
6.}
Which of the following code statements can be inserted at line 5 to create an instance of the Beta class defined in the class Alpha?