Why does jcomponent have add() and remove() methods but the component does not?
Answer / Pramod Pratap Singh
In the JSP context, `JComponent` extends `java.awt.Container`, which provides the `add()` and `remove()` methods for adding and removing child components, respectively. On the other hand, `Component` is a superclass of both `JComponent` and `javax.servlet.jsp.tagext.SimpleTagSupport`, and it does not have these methods because they are specific to handling GUI components in Swing (for JComponents) and are not relevant for server-side components.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the scope of response object?
Can an interface be implemented in the jsp file?
What is jsp taglib?
How is jsp include directive different from jsp include action. ?
How can my application get to know when a httpsession is removed?
How to get value from java to jsp page?
What is expression tag in jsp?
What are the different types of jstl tags?
How can a thread safe JSP page be implemented?
What Do you Mean By Object Serialization in java.
2 Answers Accenture, Cognizant,
What is difference between page and pagecontext in jsp?
What is application scope in jsp?