GSSP-JAVA Exam Questions
244 real GSSP-JAVA exam questions with expert-verified answers and explanations. Page 3 of 5.
- Question #102
Which of the following circumstances can prevent the execution of code in a finally block? Each correct answer represents a complete solution. Choose two.
- Question #103
Which of the following methods are used in the verification of a signature? Each correct answer represents a complete solution. Choose all that apply.
- Question #104
Which of the following statements about exceptions in message-driven beans are true? Each correct answer represents a complete solution. Choose two.
- Question #105
Mark works as a Programmer for InfoTech Inc. He creates a method named roomBooking() and this method throws IndexOutOfBoundsException. Which of the following roles will automatical...
- Question #106
What will happen when you try to compile and execute the following code? class strconcat {public static void main(String args[]) {String str =" Correct answers";String perc ="a"+"b...
- Question #107
Which of the following are correct if LoginContext enforces the requisite flag to each LoginModule in the configuration file? Each correct answer represents a complete solution. Ch...
- Question #108
Mark works as a Programmer for InfoTech Inc. He develops a code snippet for a class named servletClassA that extends the HttpServlet class. Which of the following HttpServlet class...
- Question #109
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet. class Auto {public static void main(String args[]) {Character iob ='d';float i=iob;System.out.p...
- Question #110
Which of the following declarations are the valid declaration for the <security-constraint> element? Each correct answer represents a complete solution. Choose all that apply.
- Question #111
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code for specifying the security roles for a Web application. <security-role> <role-nam...
- Question #112
Roger works as a Software Developer for Tech Mart Inc. He creates an application using Enterprise JavaBeans. In the bean class, he writes a code snippet as follows. Boolean b = ctx...
- Question #113
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet. package Mark.tutorial.javaee.ejb; import java.util.logging.Logger; import javax.annotation.Reso...
- Question #114
Roger works as a Software Developer for Tech Mart Inc. He creates an application using Enterprise JavaBeans. In the bean class, he writes a code snippet as follows. Boolean b = ctx...
- Question #115
Which of the following methods is defined by ObjectOutputStream?
- Question #116
You work as a programmer for PassGuide.Inc. You want to create a servlet filter that stores all request headers to a database for all requests to the Web application's home page "/...
- Question #117
Which of the following is a Permission class whose permissions have no actions, and allows suppressing the standard Java programming language access checks?
- Question #118
Which of the following statements about a JAR file command are true? Each correct answer represents a complete solution. Choose all that apply.
- Question #119
Which of the following exceptions will be thrown if a program fails to implement the Serializable interface?
- Question #120
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 #121
Mark develops an application using Java language. He writes the following code snippet in the application. public class mClass{ public static void main(String args[]){ try{ return;...
- Question #122
Mark works as a Programmer for InfoTech Inc. He develops an application named AccountServlet. He wants to ensure that no body can access his application, i.e., he does not want any...
- Question #123
Mark works as a Programmer for InfoTech Inc. He creates an error page named PageDoesNotExist.jsp. He wants to ensure that the PageDoesNotExist.jsp page will always be displayed if...
- Question #124
Which of the following are the advantages of JAR files over TAR files? Each correct answer represents a complete solution. Choose all that apply.
- Question #125
You work as a Software Developer for BlueWell Inc. Your team creates a Web site for online shopping. All payments are made through credit cards. Hence, you want to ensure that the...
- Question #126
A security manager is an object that defines a security policy for an application. Which of the following is used by security managers to indicate security domains?
- Question #127
Which of the following statements about a filter are true? Each correct answer represents a complete solution. Choose all that apply.
- Question #128
Rachel works as a Software Developer for Vivanet Inc. She writes the following code using Java. class catchexcp {public static void metha() {int x=4/0;System.out.print("Caught exce...
- Question #129
Which of the following pieces of codes will be placed at the line XXX to successfully compile the given class? public interface Publication { String GetDetails(); } public class Bo...
- Question #130
Which of the following methods of the java.util.logging package logs a message, specifying source class and method, with associated Throwable information?
- Question #131
Which of the following are the main basic difference between the POST and PUT request? Each correct answer represents a complete solution. Choose all that apply.
- Question #132
You work as an Application Deployer for UcTech Inc. You want to configure a filter for a Web application using the deployment descriptor. Which of the following attributes are mand...
- Question #133
Which of the following statements are true about the doAs() and doAsPrivileged() methods? Each correct answer represents a complete solution. Choose all that apply.
- Question #134
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code. <web-app> <error-page> <exception-type>java.lang.Throwable</exception-type> <loca...
- Question #135
Which of the following statements about data integrity of a container are true? Each correct answer represents a complete solution. Choose two.
- Question #136
Mark works as a Programmer for InfoTech Inc. He develops a RefreshFailed.jsp page for a servlet. He wants that the RefreshFailed.jsp page will be displayed when the javax.security....
- Question #137
Which of the following statements about the isUserInRole() method are true? Each correct answer represents a complete solution. Choose all that apply.
- Question #138
You work as a Web Deployer for UcTech Inc. You write the <security constraint> element for an application in which you write the <auth-constraint> sub-element as follows. <auth-con...
- Question #139
You work as a Software Developer for UcNet Inc. You write the following code using Java. class StringTest { public static void main(String args[]) { String s = "Hi"; concat("There"...
- Question #140
Which of the following statements about ServletContext attributes is true?
- Question #141
You work as a Software Developer for UcTech Inc. You want the deployment descriptor to contain entries for the authentication type and the security realm. In order to accomplish th...
- Question #142
Which of the following statements are true about Vector and ArrayList? Each correct answer represents a complete solution. Choose all that apply.
- Question #143
Which of the following conditions must be satisfied before the HTTP client authentication mechanism is used? Each correct answer represents a complete solution. Choose all that app...
- Question #144
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet. 1. public class Garbage 2. { 3. public static void main(String args[]) 4. { 5. String line; 6....
- Question #145
You work as a Software Developer for UcTech Inc. You want to ensure that a class is informed whenever an attribute is added, removed, or replaced in a session. Which of the followi...
- Question #146
Mark works as a Programmer for InfoTech Inc. He develops the following code for a Web application named JavaSecurity Application. <web-app . . . .> <display-name>A JavaSecurity App...
- Question #147
Which of the following methods of the javax.ejb.EJBContext interface allows the bean provider to access security information about the enterprise bean's caller? Each correct answer...
- Question #148
You work as a Software Developer for NewTech Inc. You write a bean class called EmployeeBean. The class contains two methods, EmpSal() and EmpAttendance(). Both these methods can b...
- Question #149
Which of the following validates an HTML form at client-side before submitting it to the server?
- Question #150
Which of the following code fragments will compile without error? Each correct answer represents a complete solution. Choose all that apply.
- Question #151
You have the following code of a PreparedStatement. PreparedStatement stm = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?"); Which of the following statements...