Exforsys
+ Reply to Thread
Results 1 to 3 of 3

JAVA INTERVIEW QUESTIONS

This is a discussion on JAVA INTERVIEW QUESTIONS within the Interview Questions forums, part of the Career Management category; Friends please try to answer the following questions. 1.what are design patterns? How are they applicable to java programming? 2.What ...

  1. #1
    bala555 Guest

    JAVA INTERVIEW QUESTIONS

    Friends

    please try to answer the following questions.
    1.what are design patterns? How are they applicable to java
    programming?
    2.What is custom tag in JSP? give an example on how to build a custom tag using tag library?
    3.Have you done any performance tuning in your last project? state them.
    4.Can a method be declared as both final and abstract?
    5.How do u invoke entity bean from a servlet?
    6.What are different ways of communicating between Servlet and JSP? Which one would you recommend?
    7. Where do you deploy the class files in weblogic container?


  2. #2
    Vasu is offline Member Array
    Join Date
    Nov 2004
    Answers
    36

    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


  3. #3
    bala555 Guest

    Thank You note!

    Thank You very much for the answers Vasu..!


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...