Why is it that JComponent have add() and remove() methods but Component doesn’t?



Why is it that JComponent have add() and remove() methods but Component doesn’t?..

Answer / Iqbal Ahmed

The `add()` and `remove()` methods in `JComponent` are used to manage components within a container. These methods are not present in the base class `Component` because they are specific to the functionality of containers, not all Java objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

Explain pge Directives.

1 Answers  


which is the place to learn java in chennai..

3 Answers  


Give the use of session object.

1 Answers  


How to forward a request to another source?

1 Answers  


What is the most needed for STRUTS ?

2 Answers   Trigent,


Which tag is used to execute java source code in jsp?

1 Answers  


What is a jsp directive?

1 Answers  


How to ignore the el expression evaluation in a jsp?

1 Answers  


Can we use methods in JSP? If so where the methods are stored in servlet class file?

6 Answers   Bodhtree, Cognizant, Persistent, TCS,


What is meant by session management?

1 Answers  


What is jsp taglib?

1 Answers  


How clear chache and buffer of opera browser.

1 Answers  


Categories