Test your skills through the online practice test: Java Swing Quiz Online Practice Test

Related differences

Ques 26. What are the advantages of the event-delegation model over the event-inheritance model?

Event-delegation model has two advantages over event-inheritance model. a)Event delegation model enables event handling by objects other than the ones that generate the events. This allows a clean separation between a component's design and its use. b)It performs much better in applications where many events are generated. This performance improvement is due to event-delegation model does not have to be repeatedly process unhandled events as is the case of the event-inheritance.

Is it helpful? Add Comment View Comments
 

Ques 27. Why does it take so much time to access an Applet having Swing Components the first time?

Because behind every swing component are many Java objects and resources. This takes time to create them in memory. JDK 1.3 from Sun has some improvements which may lead to faster execution of Swing applications.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users: