Explain Event handling in AWT?
Answer / niranjanravi
There are 2 ways to handle the events.
1.EventInheritance model
2.EventDelegation model.
EVentDelegation model has 2 advantages over
EventInheritance model.
First it enables event handling by objects other than the
ones that generates the events.It allows a clean separation
between components design and its use.
Secondly it performs much better in applications where many
events are generated. This performance improvement is due
to the fact that EventDelegation model doesn't need to
repeatable habndle unhandled events as is the case of
EventInheritance
| Is This Answer Correct ? | 2 Yes | 6 No |
Difference between Applet & Application?
What are the differences between path and classpath variables?
. Differentiate between instance and local variables.
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What are the advantages of unicode?
What is classpath?
What is dot operator?
diff between abstract methods and interfaces with programing (code) example?
What happens if an exception is not handled in a program?
What is the importance of hashcode() and equals() methods?
What is the difference between array and array list in java?
What is an empirical question?