Interview Question: Is Decorator an EJB design pattern?

By: Ash Viewed: 1387 times  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 )

What is Collection API?

Interview Question: How is the MVC design pattern used in Struts framework?

Interview Question: What is Action Class?

Interview Question: What is EJB client JAR file?

Question: Difference between forward and sendRedirect in JSP?

Why J2EE is suitable for the development distributed multi-tiered enterprise applications?

What do you understand by a container?

What are the services provided by a container?

Interview Question: Why it is called Struts?

Interview Question: What is ActionForm?

Interview Question: How do I install Struts?

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

Interview Question: What is Deployment descriptor?

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

Interview Question: What is Message Driven Bean?

Latest Articles (in Interview)

Comment on this tutorial