Interview Questions & Answers
#1

Interview Questions & Answers


.doc   Interview Questions.doc (Size: 141.5 KB / Downloads: 3)

1)What is a singleton class?How do you writer it? Tell examples?
A class which must create only one object (ie. One instance) irrespective of any number of object creations based on that class.
2) What is the difference between using HttpSeassion & a Stateful Session bean? Why can't HttpSessionn be used instead of of Session bean?
HttpSession is used to maintain the state of a client in webservers which are based on Http protocol. Where as Stateful Session bean is a type of bean which can also maintain the state of the client in Application servers based on RMI-IIOP
3)What is Temporary Servlet?
When we sent a request to access a JSP, servlet container internally creates a 'servlet' & executes it. This servlet is called as 'Temporary servlet'. In general this servlet will be deleted immediately to create & execute a servlet base on a JSP we can used following command.
Java weblogic.jspc—keepgenerated *.jsp
4) Generally Servlets are used for complete HTML generation. If you want to generate partial HTML's that include some static text (this should not be hard coded in servlets)
as well as some dynamic text, what method do you use?

Using 'RequestDispather.include(“xx.html”) in the servlet code we can mix the partial static HTDirectoryML page.
Ex:- RequestDispatcher rd=ServletContext.getRequestDispatcher(“xx.html”);
rd.include(request,response);
5)Difference between <jsp:forward> and <jsp:include> tags?
<jsp:forward> action tag redirect the servlet Request and Servlet Response to another resource specified in the tag. The path of the resource is 'relative path'. The output generated by current JSP will be discarded.
<jsp:include>action tag process the resource as part of the current jsp. It include the o/p generated by resource, which is specified in the Tag to the current JSP
*) In both the cases single Request proceses multiple resources.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: ksou seminar topics answers, oral job interview questions answers, embedded arm 7 interview questions with answers, nursing interview questions answers, cobol interview questions with answers, cfd interview questions answers in wiki, image processing interview questions answers,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Interview Questions and Answers interviewquestions 4 16,151 07-02-2017, 04:49 PM
Last Post: shabeer
  DATA STRUCTURES INTERVIEW QUES & ANS seminar class 4 27,376 18-06-2013, 11:44 AM
Last Post: uchconveyor
  Hibernate Interview Questions computer girl 0 16,519 07-06-2012, 04:21 PM
Last Post: computer girl
  Books & authors Related Questions , Answers computer girl 0 2,818 05-06-2012, 04:31 PM
Last Post: computer girl
  Coordinate Geometry Questions seminar class 1 5,498 21-07-2011, 11:13 AM
Last Post: smart paper boy
  C Questions seminar class 1 3,701 07-06-2011, 03:47 PM
Last Post: john.huston45
  JAVA Questions seminar class 1 4,654 26-05-2011, 12:23 PM
Last Post: dennywilliam
  Ten Tough Interview Questions and Ten Great Answers seminar class 0 11,267 22-04-2011, 03:18 PM
Last Post: seminar class
  Aptitude Questions seminar class 0 2,414 10-03-2011, 03:39 PM
Last Post: seminar class
  ASP.NET questions, part 1 seminar class 0 1,855 02-03-2011, 09:43 AM
Last Post: seminar class

Forum Jump: