GIAC GSSP-Java Exam Practice Questions (P. 1)
- Full Access (275 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
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.
Each correct answer represents a complete solution. Choose all that apply.
send
light_mode
delete
Question #2
John works as a Software Developer for VenTech Inc. He writes the following code using Java. public class vClass extends Thread
{
public static void main(String args[])
{
vClass vc=new vClass();
vc.run();
}
public void start()
{
for(int k=0;k<20;k++)
{
System.out.println("The value of k = "+k);
}
}
}
What will happen when he attempts to compile and execute the application?
{
public static void main(String args[])
{
vClass vc=new vClass();
vc.run();
}
public void start()
{
for(int k=0;k<20;k++)
{
System.out.println("The value of k = "+k);
}
}
}
What will happen when he attempts to compile and execute the application?
- AThe application will compile successfully and the values from 0 to 19 will be displayed as the output.
- BA compile-time error will occur indicating that no run() method is defined for the Thread class.
- CA runtime error will occur indicating that no run() method is defined for the Thread class.
- DThe application will compile successfully but will not display anything as the output.
Correct Answer:
D
D
send
light_mode
delete
Question #3
Which of the following classes is an engine class that provides an opaque representation of cryptographic parameters?
- ADSAPublicKeySpec
- BAlgorithmParameterGenerator
- CDSAParameterSpec
- DAlgorithmParameters
Correct Answer:
D
D
send
light_mode
delete
Question #4
Which of the following statements about programmatic security are true?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
- AThe bean provider is responsible for writing code for programmatic security.
- BIt is also called as instance level security.
- CIt is implemented using methods of the EJBContext interface.
- DIt is implemented using the methods of the UserTransaction interface.
Correct Answer:
ABC
ABC
send
light_mode
delete
Question #5
Which of the following functions are performed by methods of the HttpSessionActivationListener interface?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
- ANotifying the object when it is bound to a session.
- BNotifying an attribute that a session has just migrated from one JVM to another.
- CNotifying the object when it is unbound from a session.
- DNotifying an attribute that a session is about to migrate from one JVM to another.
Correct Answer:
BD
BD
send
light_mode
delete
All Pages