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 ActionServlet?

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Why it is called Struts?

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Does Struts include its own unit tests?

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

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

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

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

What is Deployment Descriptor?

What is J2EE Connector architecture?

What is difference between Java Bean and Enterprise Java Bean?

Explain garbage collection?

Explain the different forms of Polymorphism.

What are implicit Objects available to the JSP Page?

Latest Articles (in Interview)

Comment on this tutorial