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 )

Tell me something about J2EE component?

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

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

What is the difference between interface and abstract class?

What is JSP Scriptlet?

What are implicit Objects available to the JSP Page?

Interview Question: How many EJB Objects are created for a Bean?

What do you understand by a container in J2EE?

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

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

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

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

Interview Question: How does Struts work?

Explain the user defined Exceptions?

Interview Question: Do you have to credit Struts on your own website?

Latest Articles (in Interview)