Answer Posted / aashish r. wadhokar
no, We cannot implement an interface in a jsp bcoz jsp is an
file not a class as well as jsp is converted into a servlet
class
and this translation(jsp file to servlet class) is done by
jsp engine so we cant implement interface in jsp file.
yes, we can extend a class in jsp page using extends keyword
using extends attribute of the page directive.
eg: extends "com.classes.class"
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Explain the custom jsp tags and the beans.
Explain the working of service() method of a servlet.
Whether we can get deadlock situation in servlets?
When Servlet is unloaded?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is a servlet?
What’s the difference between genericservlet and httpservlet?
How can we include static files in the jsp page?
Is it possible to have a constructor inside the servlet?
What is a java servlet?
Which method is called when reference variable is passed in system.net?
What are the phases of a servlet life cycle?
How do you design microservices?
Why the concept of single thread model interface is used?
What is difference between cookies and httpsession?