Anyone have any thoughts on good interview questions regarding J2EE tech with emphasis in EJB, servlets, JSP or any other relevant areas. Thanks, Brandon
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
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
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.