Question 1 of 25
Hints left: 3
Q1
How method can be invoked on unknown object?
Q2
Which is mandatory in <jsp:useBean /> tag?
Q3
What is the purpose of the `javax.servlet.http.HttpSessionBindingEvent` class in Java web applications?
Q4
Which of the following action variable is used to include a file in JSP?
Q5
What is used to get class name in reflection?
Q6
Which of the following is not a directive in JSP?
Q7
Does close() implicitly flush() the stream.
Q8
Which object stores references to the request and response objects?
Q9
What are the components of a marker interface?
Q10
Java code is embedded under which tag in JSP?
Q11
How can we invalidate a session?
Q12
Which of the below is a child interface of Autocloseable?
Q13
What temporarily redirects response to the browser?
Q14
Which method creates unique fields in the HTML which are not shown to the user?
Q15
"request" is instance of which one of the following classes?
Q16
Which page directive should be used in JSP to generate a PDF page?
Q17
Which version of java added Flushable interface?
Q18
_jspService() method of HttpJspPage class should not be overridden.
Q19
Which of the following is not a marker interface?
Q20
What will be the output of the following Java code snippet? try (InputStream is = ...) { // do stuff with is... } catch (IOException e) { // handle exception }
Q21
Which of the following is stored at client side?
Q22
Can <!–comment–> and <%–comment–%> be used alternatively in JSP?
Q23
SessionIDs are stored in cookies.
Q24
Default value of autoFlush attribute is?
Q25
What is the difference between AutoCloseable and Closeable?