File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Jobs Discussion and the fly likes JSP AND JAVA Servlet interview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Careers » Jobs Discussion
Bookmark "JSP AND JAVA Servlet interview" Watch "JSP AND JAVA Servlet interview" New topic

JSP AND JAVA Servlet interview

Frank Zheng
Ranch Hand

Joined: Jun 12, 2001
Posts: 76
Could any body kindly give me any advice or sample interview questions for my upcoming interview for JSP na Servlet job.
It is hard to get a interview at this time, I don't want to miss this chance.
Thanks in advance,

Sun Certified Java Programmer
shashank bapat
Ranch Hand

Joined: Jul 11, 2001
Posts: 69
This is the list of what i can think of right away.
-Describe servlet life cycle.
-What is session?
+If u answered above correctly: How to track session?
+If u tell only one way of doing that: Whats the other way?
+Adv/dis-adv of one over other etc.
-What would u do if u want to do something only for the first invocation of the servlet/jsp.
-When is destroy called ?
-Whats the diff betn redirect and forward ?
-What does jsp gets compiled into ?
-What are diff scopes in jsp tags and what each means.
If u r not luckey enough u ll get abstract questions like "define servlet". This is indication that interviewer is non-technical/semi-technical manager who can not ask one of the above mentioned questions. Dont know about u but i m not good at answering such questions.
Another example can be: "What is OOP?". There are 100 ways to answer this questions as its a concept.
All the best

Junaid Bhatra
Ranch Hand

Joined: Jun 27, 2000
Posts: 213
Some more questions that I can think of:
1)What is the difference between the include directive and the include action tag in JSP? When would you prefer one over the other?
2)Difference between javabeans and custom tags
3)What is the SingleThread model in servlets?
4)Advantages of the servlet-centric model over the page-centric model in jsp.

[This message has been edited by Junaid Bhatra (edited September 23, 2001).]
Frank Zheng
Ranch Hand

Joined: Jun 12, 2001
Posts: 76
Junaid and shashank,
Thanks for your timely reply! These are really helpful.
Do you also have any idea about JSP architecturing questions?
One of my friend also told me that design patterns questions are very likely to be asked, Can anybody share any experiences about the patterns.
Thanks a lot!
Marilyn Monickam
Ranch Hand

Joined: Jun 05, 2001
Posts: 66
Hi Frank,
Some of the questions could be
1) What is the difference between @include and include tags.
2) How do you make a servlet thread safe?
3) If you change a JSP what should be done to get the change reflected in the page?
4) When do you choose to use a servlet or a JSP?
5) What is the MVC model?
Ranjith K

Joined: Jun 13, 2002
Posts: 1
HI All
Am Ranjith , Attending an interview in the comming week on jsp , servlet , rmi,ejb , xml ,sockets ,Multithreading , I/O, so don't want to miss the opertunity . if you can spare some time and tell me the possible questions in the following topics , that will be a great help for me .
Thannking you
With Rgds
[ June 14, 2002: Message edited by: Ranjith K ]

K.Ranjith <br />BE(Instumentation)
Frank Zheng
Ranch Hand

Joined: Jun 12, 2001
Posts: 76
Check this site:
Good luck!!!
I agree. Here's the link:
subject: JSP AND JAVA Servlet interview
It's not a secret anymore!