GSSP-JAVA Exam Questions
244 real GSSP-JAVA exam questions with expert-verified answers and explanations. Page 4 of 5.
- Question #152
For which of the following purposes is the AccessController class used? Each correct answer represents a complete solution. Choose all that apply.
- Question #153
Which of the following permission classes is an abstract class ancestor of all permissions and defines the essential functionalities required for all permissions?
- Question #154
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet. import java.util.*; public class DemoSet{ public static void main(String[] args){ TreeSet<Strin...
- Question #155
Which of the following methods can be invoked by a message-driven bean? Each correct answer represents a complete solution. Choose all that apply.
- Question #156
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?
- Question #157
Mark works as a Software Developer for ZenTech Inc. He writes the following code. 1. public class Ques0352 { 2. public static void main(String[] args) { 3. String s1="JavaObject";...
- Question #158
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. } Wh...
- Question #159
You work as a Software Developer for Developer Inc. You write the following code. interface A {public boolean b = false;} class C implements A {public static void main(String args[...
- Question #160
Which of the following statements about various authentication mechanisms in J2EE are true?
- Question #161
Mark works as a Programmer for InfoNet Inc. He writes the following programs. 1. package book; 2. public class read 3. { 4. (access modifier) int r1=10; 5. } 1. package book1; 2. i...
- Question #162
Which of the following data type values is returned by the System.in.read() console input function?
- Question #163
Which of the following exceptions will be thrown by the validate method if the result type does not match the Source type, or if the specified source is neither SAXSource nor DOM S...
- Question #164
Which of the following CLDC connector modes is used only for data input over a connection?
- Question #165
Which of the following is a valid constructor for the DataInputStream class?
- Question #166
Which of the following TextField constraints hides the input while a user is entering the data in the text box?
- Question #167
Which of the following fields is required when a user is authenticated using FORM authentication?
- Question #168
Identify whether the given statement is true or false. "If the isUserInRole() method is called on an unauthenticated user, the container returns false."
- Question #169
Which of the following exceptions will be thrown if the commit() method fails?
- Question #170
Which of the following access modifiers is allowed for the constructor for a session bean class?
- Question #171
Which of the following methods throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number?
- Question #172
Identify whether the given statement is true or false. "When an exception occurs in a try block, each catch statement following the try block is inspected in sequential order, and...
- Question #173
Which of the following exceptions will a compiler throw when a number is divided by zero?
- Question #174
The deployment descriptor uses the __________ element to pass control to an error page when an exception is thrown.
- Question #175
Which of the following classes of java.util.logging prints a brief summary of the LogRecord in a human readable format?
- Question #176
Which of the following methods reinitializes the logging properties?
- Question #177
Which of the following classes enables a programmer to create an object and protect its confidentiality with a cryptographic algorithm?
- Question #178
Which of the following exceptions will be thrown if a cipher is in decryption mode but the decrypted data is not bounded by the appropriate bytes?
- Question #179
Which of the following methods causes the currently executing thread object to temporarily pause and allow other threads to execute?
- Question #180
Identify whether the given statement is true or false. "When a Java program starts up, one thread begins running immediately."
- Question #181
Identify whether the given statement is true or false. "There is no method to create a new thread other than extending the Thread class."
- Question #182
The __________ interface accepts results from a SQL SELECT statement.
- Question #183
Identify whether the given statement is true or false. "A try statement can be placed inside the code block that follows another try statement."
- Question #184
Which of the following JDBC interfaces is described in the statement below? "It provides support for executing SQL statements and stored procedures."
- Question #185
Which of the following statements is used to enclose a block of code in which an exception is likely to occur?
- Question #186
Which of the following JAR file options creates and includes a manifest file?
- Question #188
Which of the following JAR file options is used for creating an archive?
- Question #189
Which of the following syntaxes is used to run the application packaged as a JAR file?
- Question #190
Which of the following modifiers is not an access modifier?
- Question #191
Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?
- Question #192
Identify whether the given statement is true or false. "An object becomes eligible for garbage collection when it becomes unreachable by any code."
- Question #193
Which of the following is the valid permission for a BasicPermission?
- Question #194
Which of the following will be returned by the expression "string" instanceof String?
- Question #195
Which of the following keywords is used to throw an exception object inside a method?
- Question #197
Maria works as a Software Developer for Bluetech Inc. She develops a class named Warden that needs to access a class named Hostel, which is deployed in a JAR named City.JAR. What w...
- Question #198
Consider the given lines of codE. package ucert class memberaccess { public int mem = 10; } Which of the following can directly access the variable mem?
- Question #200
You work as a developer for PassGuide Inc. You have implemented a session bean with a method doPrint(), which behaves differently depending on the caller's security role. Only MANA...
- Question #201
Which of the following fields must be present in the login page when using the form-based authentication? Each correct answer represents a part of the solution. Choose two.
- Question #202
Which of the following symbols is used to designate a named input parameter?
- Question #203
In which of the following locations the helper classes of a session bean class reside?
- Question #204
Which of the following is not a type of authentication?