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 |
Is array synchronized in java?
Do you know thread pools?
For technical interview question please sir send me because tomorrow my interview
What are reference variables in java?
What primitive Java types? Howmany are they and what are their names?
what is optional in java 8?
What is object-oriented programming?
Can I declare class as static or private?
What do you mean by thread safe?
What is yielding and sleeping? how they different?
Can I import same package/class twice?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?