View Single Post

  #2 (permalink)  
Old 06-11-2004, 06:51 PM
Vasu Vasu is offline
Senior Member
 
Join Date: Nov 2004
Posts: 132
Vasu
Re:JAVA INTERVIEW QUESTIONS

1.what are design patterns? How are they applicable to java
programming?
http://www.fluffycat.com/java/patterns.html

2.What is custom tag in JSP? give an example on how to build a custom
tag using tag library?
http://csajsp-chapters.corewebprogra...-Chapter14.pdf

3.Have you done any performance tuning in your last project? state
them?
http://weblogs.java.net/pub/wlg/1101
http://www.javaperformancetuning.com...wtips042.shtml

4.Can a method be declared as both final and abstract?
A method can be declared final to prevent subclasses from overriding or hiding it. Attempting to override or hide a final method, or to declare a final method abstract, causes a compilation error to occur. All methods declared in a final class are implicitly final, because it is impossible to override them. It is permitted but not required for the declarations of such methods to redundantly include the final keyword.

5.How do u invoke entity bean from a servlet?
http://java.sun.com/developer/techni...ans/EJBEntity/

6.What are different ways of communicating between Servlet and JSP?
Which one would you recommend?
Calling a JSP from a Servlet, or vice-versa, can be done using the RequestDispatcher interface, which is part of the Servlet 2.2 specification. Following is the code for sending output to a JSP page from a servlet:

javax.servlet.RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/Requested.jsp);
request.setAttribute(\"Name\",Vasu);
request.setAttribute(\"Language\",Java);
dispatcher.forward(request,response);

7. Where do you deploy the class files in weblogic container?
http://edocs.bea.com/wls/docs60/ejb/deploy.html
http://edocs.bea.com/elink/elinkjam/...guid/dploy.htm

Thanks
Exforsys Team
Reply With Quote