JSP Question:

Download Job Interview Questions and Answers PDF

Why does JComponent have add() and remove() methods but Component does not?

Java JSP Programming Interview Question
Java JSP Programming Interview Question

Answer:

because JComponent is a subclass of Container, and can contain other components and jcomponents. How can I implement a thread-safe JSP page? - You can make your JSPs thread-safe by having them implement the SingleThreadModel interface. This is done by adding the directive

<%@ page isThreadSafe="false" % > within your JSP page.

Download Java JSP Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How do I include static files within a JSP page? How can I enable session tracking for JSP pages if the browser has disabled cookies?