Programming Tutorials

Interview Question: Is Decorator an EJB design pattern?

By: Ash in Interview Tutorials on 2008-08-13  

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.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Can Entity Beans have no create() methods?

What are implicit Objects available to the JSP Page?

Interview Question: Does Struts include its own unit tests?

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

What is Collection API?

Interview Question: What is the difference between JavaBean and EJB?

What is the difference between jsp:forward and response.sendRedirect(url)

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

What are all the different scope values for the tag?

Question: What is an Expression tag in JSP?

Question: Explain the life-cycle methods in JSP?

What types of comments are available in the JSP?

What is Deployment Descriptor?

What do you understand by a container in J2EE?

What is the difference between interface and abstract class?

Latest Articles (in Interview)