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, Frank (SCJP)
Frank, 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 ------------------ -Shashank MS(CS),BS(CS),SCJP2
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. Goodluck!
[This message has been edited by Junaid Bhatra (edited September 23, 2001).]
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! Frank
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? Marilyn
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 Ranjith [ June 14, 2002: Message edited by: Ranjith K ]