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 )

What do you understand by Synchronization?

Explain the different forms of Polymorphism.

Interview Question: What is ActionServlet?

Interview Question: Is there a particularly good IDE to use with Struts ?

Interview Question: What is EJB client JAR file?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

Differentiate between .ear, .jar and .war files.

What are the services provided by a container?

Name the containers which uses Border Layout as their default layout?

What is Collection API?

What is similarities/difference between an Abstract class and Interface?

Interview Question: What is Struts?

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

Interview Question: Who makes the Struts?

Interview Question: Why it is called Struts?

Latest Articles (in Interview)

Comment on this tutorial