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 )

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Who wrote Struts?

Interview Question: Where can I get a copy of Struts?

Interview Question: How do I install Struts?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

Interview Question: What is ActionServlet?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: What is EJB container?

Interview Question: What is Deployment descriptor?

Interview Question: What is EJB client JAR file?

Interview Question: What is Local client view in EJB?

Interview Question: What is Remote client view?

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

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

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

Latest Articles (in Interview)

Comment on this tutorial