Interview Question: Is Decorator an EJB design pattern?

By: Ash Printer Friendly Format    

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.

 

 

 

 



Most Viewed Articles (in Interview )

Question: What is the directory structure of a web application?

Types of Interviews

Interview Question: What is the difference between JavaBean and EJB?

Interview Question: What is deployment descriptor?

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

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

Interview Question: What is the difference between sessioncontext and entitycontext?

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

Interview Question: What is Local client view in EJB?

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

Interview Question: Does Struts include its own unit tests?

What is the difference between interface and abstract class?

What are the life-cycle methods of JSP?

What is JSP Scriptlet?

What is JSP declaration?

Latest Articles (in Interview)

Comment on this tutorial