GSSP-JAVA Exam Questions
244 real GSSP-JAVA exam questions with expert-verified answers and explanations. Page 2 of 5.
- Question #52
Which of the following are valid code samples for creating file permissions? Each correct answer represents a complete solution. Choose all that apply.
- Question #53
Which of the following code declarations are valid error-page declarations? Each correct answer represents a complete solution. Choose all that apply.
- Question #54
What will be the output of the following code snippet? class test22 { public static void main(String args[]) { String str= new String("Hello"); str.insert(3,"bye"); System.out.prin...
- Question #55
Which of the following authentication flag values will force authentication to continue to proceed down the LoginModule list, irrespective of whether the LoginModule succeeds or fa...
- Question #56
Which of the following is the correct syntax for the JVM garbage collection?
- Question #57
Which of the following methods are overridden by the FileInputStream class? Each correct answer represents a complete solution. Choose all that apply.
- Question #58
Which of the following are valid method signatures of the getInstance() method of the Policy class? Each correct answer represents a complete solution. Choose all that apply.
- Question #59
You work as a Software Developer for Relix Inc. You have written the following code . class Test {protected void show(){}} Now you want to override the method show() in the subclas...
- Question #60
Which of the following web-resource element descriptions will be used if you want to restrict all URL's in the application and perform authentication for the http delete method?
- Question #61
Which of the following options are available with jar files? Each correct answer represents a complete solution. Choose all that apply.
- Question #62
You work as a Software Developer for BlueTech Inc. You create code using EJB 3.0. You want to ensure that each new record is checked for validation before it is inserted into the d...
- Question #63
Which of the following elements of the java.util.logging package exports objects to a variety of destinations including memory, output streams, consoles, files, and sockets?
- Question #64
Which of the following statements about a native modifier in Java are true? Each correct answer represents a complete solution. Choose two.
- Question #65
You have created a Java application that will retrieve and insert data into a database table. Which of the following objects will you use to pass the JDBC Driver to obtain a connec...
- Question #66
Which of the following code fragments will throw NumberFormatException?
- Question #67
Which of the following will be the result if an integer overflow occurs in an operation?
- Question #68
You work as a Software Developer for UcTech Inc. You are building a Web site that will contain study materials on the Java language. The company wants that members can access all t...
- Question #69
Mark works as a Programmer for InfoTech Inc. He develops the following security-constraint code. <security-constraint> <web-resource-collection> <web-resource-name>Manager</web-res...
- Question #70
Mark works as a Programmer for InfoTech Inc. He develops an application named JavaServices. He wants to declare a security constraint that will restrict everything in the com/files...
- Question #71
Which of the following methods is used to preallocate room for a certain number of characters after a StringBuffer has been constructed?
- Question #72
Mark works as a Programmer for InfoTech Inc. He develops a program that defines a class named Inventory that has an instance variable named NumOfItems. Which of the following prope...
- Question #73
Which of the following statements are correct about the code given below? <security-constraint> <web-resource-collection> <web-resource-name>AccountServlet</web-resource-name> <des...
- Question #74
You work as programmer for PassGuide.Inc. You have purchased a Web application named SecureProgrammer that uses the programmatic authorization, and the security roles that are not...
- Question #75
You have the following code fragment of a Java program named test. 12. public void getData(){ 13. ArrayList numbers=new ArrayList(); 14. for(int i=0; i<10;1++){ 15. int value=i*((i...
- Question #76
Which of the following init() method calls initializes a cipher object with a key in the SECRET_MODE?
- Question #77
Peter works as a Software Developer for Neon Inc. He is developing an application in Java. He declares an interface. Which of the following field declarations are valid within the...
- Question #78
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 al...
- Question #79
Which of the following elements contains the <filter> element in the deployment descriptor?
- Question #80
Which of the following classes is an engine class designed to provide conversions between opaque cryptographic keys and allows you to build an opaque key object from a given key sp...
- Question #81
The java.util.logging package provides the classes and interfaces of the Java platform's core logging facilities. Which of the following are the main target uses of logs? Each corr...
- Question #82
Which of the following statements about serialization are true? Each correct answer represents a complete solution. Choose all that apply.
- Question #83
Which of the following code snippets will read the eighth byte of the file wRead.txt into the variable str?
- Question #84
Samantha works as a Software Developer for Bluetech Inc. She develops a class Warden that needs to access the Hostel class. The Hostel class is deployed in a JAR named City.JAR. Wh...
- Question #85
Mark works as a Programmer for InfoTech Inc. He develops the following program. class iftest2 {public static void main(String args[]) {int x=0, y=1;if //code//{System.out.println("...
- Question #86
There are two threads defined in an application named "thread1" and "thread2". Which of the following options can be the direct cause of "thread1" becoming blocked? Each correct an...
- Question #87
Which of the following authentications uses HTTPS (HTTP over SSL) to verify a user?
- Question #88
Mary works as a Software Developer for ABC Solutions Inc. She writes the following code. public class StringMethods { public static void main(String[] args) { String str = new Stri...
- Question #89
You develop an application. Now you want to ensure that data is sent between client and server in such a way that it cannot be changed in transit. Which of the following element de...
- Question #90
Which of the following statements make a message-driven bean different from a session bean? Each correct answer represents a complete solution. Choose all that apply.
- Question #91
Which of the following syntaxes can be used to retrieve a URL to a resource specified as WEBINF/example/sessionObject.txt? Note. Assume that session is an instance of the HttpSessi...
- Question #92
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 myMeth...
- Question #93
Which of the following methods of the HttpSession interface can be called upon an invalidated session without throwing the IllegalStateException?
- Question #94
Which of the following methods specifies which LoginModules should be used for a particular application, and in what order the LoginModules should be invoked?
- Question #95
Peter works as a Programmer in Magi Net Inc. He writes the following code. 1. class Ques0190{ 2. public static void main(String[] argv){ 3. byte a = 100; 4. switch(a){ 5. case 10....
- Question #96
Which of the following statements about the form-based authentication are true? Each correct answer represents a complete solution. Choose two.
- Question #97
Which of the following classes implements the java.lang.Cloneable and java.lang.Runnable interfaces correctly?
- Question #98
Which of the following methods are used to customize object serialization so that the objects will be able to apply default serialization? Each correct answer represents a complete...
- Question #99
Which of the following statements about the <web-resource-collection> element are true? Each correct answer represents a complete solution. Choose all that apply.
- Question #100
Wilbert works as a Software Developer for Wintos Inc. He writes the following code. 1. public class tcf 2. { 3. public static void main(String[] args) 4. { 5. try 6. { 7. int x = 5...
- Question #101
Which of the following, in JDBC 2.0, are the sub interfaces of the Statement interface? Each correct answer represents a complete solution. Choose two.