Description: programming languages Online Quiz - 1 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
We all know about the Dynamic dispatch in java. But if there is dynamic dispatch , then is there a Static dispatch also? (Easy One...)
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...
Annonymous Inner classes are not possible within an Interface.
In Static inner classes, the data members and the member functions are by default static.
Classes in Java cannot be made static.
Which of the following combinations (Design Pattern - Functionality) regarding Design Patterns is correct?
Which of the following statements are true about the given method declaration? MyEJBObject createWithName(String name) throws CreateException, RemoteException
Which method cannot be called by a stateful session bean using bean-managed transactions?
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?
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?
Which of the following is NOT an advantage of using the SessionFacade pattern?
Which enterprise bean type is defined without any client view interfaces?
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?
A transactional client receives TransactionRolledBackException from a call to a method on an entity bean. What could be the possible reason(s) for this?
Which one of the following ServletRequest interface method returns more than one value associated with parameter?
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?
The variables local to the methods like service(), doPost() and doGet() are thread safe. True/False?
Which of the following aren't the methods for state/session management in the context of Servlets?