• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interview questions - J2EE

 
Brandon Hill
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone have any thoughts on good interview questions regarding J2EE tech with emphasis in EJB, servlets, JSP or any other relevant areas.
Thanks,
Brandon
 
Peter Masreblta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Here are some questions: http://www.javaranch.com/ubb/Forum37/HTML/000710.html
One of them is:
"-What would u do if u want to do something only for the first invocation of the servlet/jsp"
I know what to do for servlet, but I want to know what to do for jsp.
Thank
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's interesting ... what would you do? Something with the servlet's init method? Don't forget that some containers may maintain a pool of servlet instances ... and each instance would get initialised.
Similarly JSPs have a jspInit method which you can define in a jsp:declaration

 
Deepak Mahbubani
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more question asked in interviews wrt servlets :
How can u increase performance of a servlet in an application without changing the source code ?
Ans : Increase the pool size. Weblogic , or any other application server lets you do that.
 
laxmikant shimpi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not find the link working.
Can you somebody tell me where this link is locatedd and some more Questions on JSP and Websphere are appreciated

Thanks and Regards,
Laxmikant
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic