GIAC GSSP-Java Exam Practice Questions (P. 5)
- 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 #21
Which of the following statements is true about the Java synchronized keyword?
- AIt prevents multiple threads from accessing a block of code at the same time.
- BIt allows the class to be loaded as soon as the JRE starts.
- CIt prevents multiple developers from code redundancy.
- DIt allows two different functions to execute in a shared manner.
Correct Answer:
A
A
send
light_mode
delete
Question #22
Mark works as a Programmer for InfoTech Inc. He develops a Web application that takes input from users. Which of the following methods can be used by the client and server to validate the users input?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
- AValidation through Servlets on the server side
- BValidation using JavaScript on the client side
- CValidation through Java Applets on the client side
- DValidation through XML on the server side
Correct Answer:
AB
AB
send
light_mode
delete
Question #23
Which of the following are marker interfaces?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
- AThe Clonable interface
- BThe Serializable interface
- CThe Comparable interface
- DThe Runnable interface
Correct Answer:
AB
AB
send
light_mode
delete
Question #24
Which of the following rules must be followed while determining a class loader?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
- AA new instance of the AppletClassLoader is used while loading the first class of an applet.
- BIf the request to load a class is triggered by a reference to it from an existing class, the class loader for the existing class is asked to load the class.
- CA new instance of the URLClassLoader is used while loading the first class of an application.
- DThe primordial class loader is used if java.lang.Class.ForName is directly called.
Correct Answer:
ABCD
ABCD
send
light_mode
delete
Question #25
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.
Which of the following statements are true about the syntax?
Each correct answer represents a complete solution. Choose all that apply.
- AThe client acknowledges a consumed message by calling the message's acknowledge method.
- BThe acknowledge method can reduce session overhead by minimizing the work the session does to prevent duplicates.
- CThis method instructs the session to lazily acknowledge the delivery of messages.
- DThe session automatically acknowledges a client's receipt of a message.
- EIf a message consumer consumes eight messages and then acknowledges the fourth message delivered, all eight messages are acknowledged.
Correct Answer:
AE
AE
send
light_mode
delete
All Pages