Vidyalelo
Java Programming · all questions

Java Session Management and JSP
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

80

Questions

2/4

Page

Pick an option on a question to see the right answer and solution.

What is the role of the `javax.servlet.jsp.tagext.TagSupport` class in JSP custom tag development?

Select an option to see the answer and solution.

What is the primary purpose of the `HttpSessionBindingEvent` class in Java web applications?

Select an option to see the answer and solution.

In JSP, what is the `` action used for?

Select an option to see the answer and solution.

Which JSP directive is used to import Java classes into a JSP page?

Select an option to see the answer and solution.

What is the purpose of the `` tag in JSTL (JavaServer Pages Standard Tag Library)?

Select an option to see the answer and solution.

In Java Servlets, what is the purpose of the `javax.servlet.http.HttpSessionActivationListener` interface?

Select an option to see the answer and solution.

What does the term "JSP EL" stand for in JavaServer Pages?

Select an option to see the answer and solution.

What is the purpose of the `` tag in JSTL (JavaServer Pages Standard Tag Library)?

Select an option to see the answer and solution.

In JSP, what is the `` action used for?

Select an option to see the answer and solution.

What is the purpose of the `javax.servlet.http.HttpSessionBindingEvent` class in Java web applications?

Select an option to see the answer and solution.

Which of the following is stored at client side?

Select an option to see the answer and solution.

Does close() implicitly flush() the stream.

Select an option to see the answer and solution.

Which object stores references to the request and response objects?

Select an option to see the answer and solution.

What is the difference between AutoCloseable and Closeable?

Select an option to see the answer and solution.

"request" is instance of which one of the following classes?

Select an option to see the answer and solution.

Which is mandatory in <jsp:useBean /> tag?

Select an option to see the answer and solution.

Which version of java added Flushable interface?

Select an option to see the answer and solution.

Can <!–comment–> and <%–comment–%> be used alternatively in JSP?

Select an option to see the answer and solution.

Which of the following is not a directive in JSP?

Select an option to see the answer and solution.

Which of the below is a child interface of Autocloseable?

Select an option to see the answer and solution.