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 initial size of arraylist in java?
How does singleton class work?
Which is illegal identifier in java?
How can we pass argument to a function by reference instead of pass by value?
What is the vector class in java programming?
What is method Overloading in the perspective of OOPS?
Why string is not thread safe?
What is difference between static method and static variable?
What is unicode datatype?
Explain what do you mean by functional overloading in java?
What is file class and what is its purpose?
we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?