programming languages Online Quiz - 1
Description: programming languages Online Quiz - 1 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the following aren't the methods for state/session management in the context of Servlets?
The variables local to the methods like service(), doPost() and doGet() are thread safe. True/False?
You want to use URL rewriting to support client browsers, which do not use cookies. Which method will you use to attach the session id to a URL that is to be used for the sendRedirect() method of the HttpServletResponse?
Which one of the following ServletRequest interface method returns more than one value associated with parameter?
A transactional client receives TransactionRolledBackException from a call to a method on an entity bean. What could be the possible reason(s) for this?
Your application supports multiple client types including HTTP clients. Your business layer is implemented using Enterprise Java Beans. Which of the following is best suited for maintaining client state?
Which enterprise bean type is defined without any client view interfaces?
Which of the following is NOT an advantage of using the SessionFacade pattern?
You want to locate an existing bean object but do not want to create a new instance, if an existing instance is not available. Which of the following bean attributes will you use in the jsp:useBean action?
A container-managed persistence (CMP) entity bean A has a one-to-many unidirectional relationship (CMR) to another container-managed persistence (CMP) entity bean B. Which interface can expose the methods related to this relationship?
Which method cannot be called by a stateful session bean using bean-managed transactions?
Which of the following statements are true about the given method declaration? MyEJBObject createWithName(String name) throws CreateException, RemoteException
Which of the following combinations (Design Pattern - Functionality) regarding Design Patterns is correct?
Classes in Java cannot be made static.
In Static inner classes, the data members and the member functions are by default static.
Annonymous Inner classes are not possible within an Interface.
Classes can be created at the runtime. ie; A class during its execution can create another class at the runtime, give it methods,decide what parameters should go into those methods, which all interfaces it should implement etc...
We all know about the Dynamic dispatch in java. But if there is dynamic dispatch , then is there a Static dispatch also? (Easy One...)