Which of the following is a mandatory sub-element of the <web-resource-collection> element of the deployment descriptor?
Answer : A
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
Answer : A,B,C
The following JSP scriptlet is given.
<% response.setContentType("text/html; charset=ISO-8859-1"); %>
Which of the following directives is the equivalent directive for the scriptlet given above?
Answer : C
You write the following code.
class Father {public void Method() {System.out.println("I am Father");}} public class Son extends Father {public static void main(String argv[]) {Son son = new
Son();son.Method();}
private void Method() {System.out.println("I am Son");}}
Which of the following will be the result, when you try to compile and run the code?
Answer : E
Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error? abstract class P {} //1 private class Q {} //2 static class R {} //3 transient class S {} //4
Answer : B
Which of the following statements about the <auth-constraint> element are true?
Each correct answer represents a complete solution. Choose all that apply.
Answer : A,C
Which of the following methods is used to authenticate the users, and if the user has not been authenticated, the method returns false?
Answer : C
Which of the following mechanisms is closely related to authorization?
Answer : B
You work as a Programmer for InfoTech Inc. You develop two html pages named authenticate.jsp and error.jsp, which are deployed directly at the root of the Web application named Authentication. Which of the following deployment descriptor code declarations will be used to ensure that the error.jsp page will be displayed automatically if the client is not authenticated?
Answer : A
Which of the following are advantages of client-side JavaScript?
Each correct answer represents a complete solution. Choose two.
Answer : A,D
You work as a Software Developer for NewTech Inc. You want to configure the deployment descriptor so as to specify the error pages used in the FORM based authentication. Which of the following elements will you use to accomplish the task?
Answer : D
Mark works as a Programmer for InfoTech Inc. He develops a class named Data that imports all the required packages. The class Data uses a method named PrintData(), which uses a method that checks whether the caller has a BeanUser security role. Which of the following code of the method PrintData() will satisfy the requirement?
Answer : C
Which of the following methods can be invoked from the ejbStore() method of an entity bean class?
Each correct answer represents a complete solution. Choose all that apply.
Answer : A,C,D,E
Harry works as a Software Developer for SoftTech Inc. He has developed a Java application to perform various SQL statements such as INSERT, UPDATE, etc., against a database table named Employee. He has used the executeUpdate() method to perform various SQL queries and to know the exact affected rows in the database if any of the operations is performed against the database table.
Which of the following types of values is returned by this method?
Answer : B