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 |
What is the difference between an inner class and a sub-class?
Is set ordered in java?
when everything can be done by static block then why do we use main method?.
Explain the usage of this with constructors?
Can you override static methods?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Can you call a method on a null object?
Explain Stream Tokenizer?
What are the types of methodology?
Explain Linked HashSet
how to compile jsp?
Difference between flush() and commit() in hibernate?