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 the server cannot find the requested page or if the request is for a page that does not exist on the server. Which of the following error-page code declarations will be used?
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.
Which of the following statements are true about the doAs() and doAsPrivileged() methods?
Each correct answer represents a complete solution. Choose all that apply.
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 role to have access on his application. He defines the following security constraint for his application.
//code
Which of the following options will be used to secure his application?
Which of the following code snippets will read the eighth byte of the file wRead.txt into the variable str?
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.
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";System.out.println(80+ '%' + str);}}
Note. The ASCII value of % is 37.
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 specification?
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 the pages, but nonmembers have only limited access to the Web site pages. Which of the following security mechanisms will you use to accomplish the task?
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 automatically handle the exception?