GSSP-JAVA Exam Questions
244 real GSSP-JAVA exam questions with expert-verified answers and explanations. Page 5 of 5.
- Question #205
Which of the following exceptions will be thrown if the name parameter is null in the constructor of AuthPermission?
- Question #206
Which of the following methods evaluates the global policy for the permissions granted to the ProtectionDomain and tests whether the permission is granted?
- Question #207
Which of the following deployment descriptor elements is used to declare the reference of a client's application to an external resource?
- Question #208
Which of the following attributes of the <jsp:include> action is used to indicate whether to force the output buffer used by the JspWriter to be written to the client before the re...
- Question #209
Which of the following exceptions will be thrown if the checkSecurityAccess() method uses an empty target as its parameter value?
- Question #225
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...
- Question #226
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...
- Question #227
Which of the following classes is an engine class that provides an opaque representation of cryptographic parameters?
- Question #228
Which of the following statements about programmatic security are true? Each correct answer represents a complete solution. Choose all that apply.
- Question #229
Which of the following functions are performed by methods of the HttpSessionActivationListener interface? Each correct answer represents a complete solution. Choose all that apply.
- Question #230
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code. <web-app . . . .> <display-name>A Secure Application</display-name><servlet> ......
- Question #231
Which of the following methods of the EJBContext interface can be called by both the BMT and CMT beans? Each correct answer represents a complete solution. Choose all that apply.
- Question #232
Mark works as a Programmer for InfoTech Inc. He develops a deployment descriptor code that contains three valid <security-constraint> elements. All of them constraining a Web resou...
- Question #233
Which of the following statements correctly describe the features of the singleton pattern? Each correct answer represents a complete solution. Choose all that apply.
- Question #234
Which of the following deployment descriptor elements must contain the <transport-guarantee> element as its mandatory sub-element?
- Question #235
Given a code of a class named PrintString that prints a string. 1. public class PrintString{ 2. public static void main(String args[]){ 3. /*insert code here */ 4. /* insert code h...
- Question #236
Mark writes a class Practice.java. This class needs to access the com.bar.Test class that is stored in the Test.jar file in the directory /practice. How would you compile your code...
- Question #237
Which of the following elements indicates which users in specified roles are permitted access to a resource collection?
- Question #238
Which of the following annotations specifies the roles that are allowed to invoke a particular bean method?
- Question #239
Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?
- Question #240
Which of the following methods retrieves a single character from a string?
- Question #241
The __________ interface accepts results from a SQL SELECT statement.
- Question #242
Which of the following options directs the Java compiler to search files in the current directory?
- Question #243
Which of the following data type values is returned by the System.in.read() console input function?
- Question #244
Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?
- Question #245
Which of the following methods belongs to the Refreshable interface?
- Question #246
Which of the following exceptions is thrown to indicate that a servlet is temporarily unavailable?
- Question #247
Which of the following is the return type of the getInitParameter() method of the ServletContext interface?
- Question #248
Which of the following tags is used to include resources from within the same servlet container?
- Question #249
Which of the following rules must be followed while determining a class loader? Each correct answer represents a complete solution. Choose all that apply.
- Question #250
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() meth...
- Question #251
Which of the following statements are true about object serialization? Each correct answer represents a complete solution. Choose all that apply.
- Question #257
Which of the following attribute scopes does not exist for a Servlet?
- Question #258
Which of the following security related elements of the deployment descriptor matches the argument to the isCallerInRole() method?
- Question #259
The ______________ method of the EJBContext interface tests whether the client is a member of the role specified in the argument to the method.
- Question #260
Which of the following elements can be used to obtain a database connection?
- Question #261
According to the EJB programming restrictions, which of the following should be used to access the files or directories?
- Question #262
Which of the following elements is used as a parameter in the EJBContext.isCallerInRole() method?
- Question #263
Which of the following methods is used by the AccessController to determine whether or not a requested permission is used by another permission that is known to be valid in the cur...
- Question #264
Which of the following exceptions is thrown if a class uses the clone() method but does not implement the Cloneable interface?
- Question #265
Which of the following roles will release a servlet instance for garbage collection after the destroy method completes?
- Question #266
Which of the following statements can be used by a Programmer to suggest the JVM to perform garbage collection?
- Question #274
Which of the following are marker interfaces? Each correct answer represents a complete solution. Choose all that apply.
- Question #275
Mark works as a Programmer for InfoTech Inc. He wants to define the security constraint for an application that allows users with the role of Manager access to the POST method of a...