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.

 

 

 

 

Ask a Question



Most Viewed Articles (in Interview )

Interview Question: What is the difference between EAR, JAR and WAR file?

Explain garbage collection?

Interview Question: What is deployment descriptor?

Can Entity Beans have no create() methods?

Explain the new Features of JDBC 2.0 Core API?

What types of comments are available in the JSP?

Interview Question: What is Struts?

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

Interview Question: What is Action Class?

Interview Question: What is ActionForm?

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Does Struts include its own unit tests?

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

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Do ActionForms have to be true JavaBeans?

Latest Articles (in Interview)

Comment on this tutorial