Advanced Java Interview Questions and Answers - 1

Question: 1

What is EL?

EL stands expression language. An expression language makes it possible to easily access application data. In the below expression amount of wine variable valued will be rendered.

Question: 2

Explain the concepts of SSI?

Server side Includes (SSI) are commands and directives placed in Web pages that are evaluated by the Web server when the Web page is being served. SSI are not supported by all web servers. So before using SSI read the web server documentation for the support. SSI is useful when you want a small part of the page to be dynamically generated rather than loading the whole page again.

Question: 3

What is an HTTPSession Class?

HTTPSession Class provides a way to identify a user across multiple requests.

The servlet container uses HTTPSession interface to create a session between an HTTP client and an HTTP server. The session lives only for a specified time period, across more than one connection or page request from the user.

Question: 4

What are the type of protocols supported by HTTPServlet?

It extends the GenericServlet base class and provides a framework for handling the HTTP protocol. So, HTTPServlet only supports HTTP and HTTPS protocol.

Question: 5

What do you understand by JSP Translation?

JSP translators generates standard Java code for a JSP page implementation class. This class is essentially a servlet class wrapped with features for JSP functionality.

Related Questions