A software unit that consists of one or more classes and an application client deployment descriptor
Advance Java Interview Questions
The process of saving the state of an object and restoring it.
Same as caller principal.
To develop a web application we need to handle multiple request and give the particular page, Servlet can handle multiple requests concurrently, and can synchronize requests
ServletConfig: One ServletConfig Object is created per servlet It can be used to access ServletContext Parameters are configured in DD(deployment description) ServletContext One ServletContext will be created per web application. Can be used to access web app parameter. Can be used to get server Info.
Cache static data using jspInit() method. Release static data in jspDestroy() method. To concatenate string use, StringBuffer. Do not use println() method. Do not use PrintWriter to send binary data. Use ServletOutputStream. Always flush data in sections. Use getLastModified() method to handle browser and server cache. Use application server cache. Use session in following order: …
A JSP element that gives an instruction to the JSP container and is interpreted at translation time.
Because no plug-ins or security policy files are needed on the client systems(applet does). Also, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming from web page design. This means personnel involved in web page design do not need to understand Java programming language syntax to …
Yes. Preemptive termination of request processing on an error condition is a good way to maximize the throughput of a high-volume JSP engine. The trick (assuming Java is your scripting language) is to use the return statement when you want to terminate further processing.