Interview Question: Is Decorator an EJB design pattern?

By: Ash  

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 )

How to define an Abstract class?

Explain the new Features of JDBC 2.0 Core API?

Interview Question: What is EJB client JAR file?

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

Interview Question: What is Local client view in EJB?

What are implicit Objects available to the JSP Page?

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

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

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: Can i map more than one table in a CMP?

What is the difference between jsp:include page and @ include file?

What do you understand by JSP Actions?

What is the difference between Session Bean and Entity Bean?

Latest Articles (in Interview)

Comment on this tutorial