GIAC GSSP-JaVa Actual Free Exam Questions & Community Discussion
Which of the following are marker interfaces?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: B,C
Vote an answer
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.
Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: A,B,D,E
Vote an answer
The ______________ method of the EJBContext interface tests whether the client is a member of the role specified in the argument to the method.
Correct Answer: B
Vote an answer
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.isCallerInRole("Administrator");
The application assembler named Bob declares the following entries within the <entity> element of the deployment descriptor.
1.<security-role-ref>
2.The HR-Manager will have permission to access all the methods.
3.<role-name>HR-Manager</role-name>
4.5.
</security-role-ref>
Bob wants to ensure that HR-Manager declared in the deployment descriptor should have all the privileges of an administrator. Which of the following elements should Bob declare in line 4 while deploying the bean?
Boolean b = ctx.isCallerInRole("Administrator");
The application assembler named Bob declares the following entries within the <entity> element of the deployment descriptor.
1.<security-role-ref>
2.The HR-Manager will have permission to access all the methods.
3.<role-name>HR-Manager</role-name>
4.5.
</security-role-ref>
Bob wants to ensure that HR-Manager declared in the deployment descriptor should have all the privileges of an administrator. Which of the following elements should Bob declare in line 4 while deploying the bean?
Correct Answer: B
Vote an answer
Which of the following tags is used to include resources from within the same servlet container?
Correct Answer: B
Vote an answer
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: A,B,D
Vote an answer
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 here */
5.System.out.println(str);
6.}
7.}
Which of the following code fragments can be inserted in the class PrintString to print the output "4247"?
Each correct answer represents a complete solution. Choose all that apply.
1.public class PrintString{
2.public static void main(String args[]){
3./*insert code here */
4./* insert code here */
5.System.out.println(str);
6.}
7.}
Which of the following code fragments can be inserted in the class PrintString to print the output "4247"?
Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: B,E
Vote an answer
Which of the following code declarations are valid error-page declarations? Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: A,E
Vote an answer
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?
Correct Answer: B
Vote an answer
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 body of an interface?
Each correct answer represents a complete solution. Choose three.
Each correct answer represents a complete solution. Choose three.
Correct Answer: B,C,D
Vote an answer
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
abstract class P {} //1
private class Q {} //2
static class R {} //3
transient class S {} //4
Correct Answer: A
Vote an answer
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 properties will be applied by NumOfItems?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: B,C,D
Vote an answer
Which of the following statements about programmatic security are true?
Each correct answer represents a complete solution. Choose all that apply.
Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: B,C,D
Vote an answer
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 HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.
Note. Assume that session is an instance of the HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.
Correct Answer: D
Vote an answer
0
0
0
10
