Programming Tutorials

Interview Question: Is Decorator an EJB design pattern?

By: Ash in Interview Tutorials on 2008-08-13  

Question:Is Decorator an EJB design pattern?

Answer: No. Decorator design pattern, is the one which exhibits very low level runtime polymorphism, for the specific and single object (Instance of the class), but not for atleast for a class. It is the stuff to add specific functionality to a single & pointed object and leaves others like it unmodified. It is having close similarities like aspectJ stuff, but not with EJB stuff.





Add Comment

* Required information


No comments yet. Be the first!

Most Viewed Articles (in Interview )

Interview Question: Is there a particularly good IDE to use with Struts ?

Explain the different forms of Polymorphism.

Interview Question: What are the optional clauses in EJB QL?

Interview Question: What is ActionServlet?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is Deployment descriptor?

Interview Question: What is EJB client JAR file?

What are Access Specifiers available in Java?

Interview Question: Can I invoke Runtime.gc() in an EJB?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

What is the difference between Session Bean and Entity Bean?

Types of Interviews

Interview Question: How many EJB Objects are created for a Bean?

Interview Question: Is Decorator an EJB design pattern?

Latest Articles (in Interview)