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 main difference between architecture,framework and design pattren
How a variable is stored in memory?
Can you explain the cs option of java interpreter?
Why is singleton class used?
I want to run a simple hello world java (HelloWorld.java) program using a batch file. How can i run it and how to construct a batch file.
What is port number in java?
What is json parser in java?
What is a java developer salary?
If two threads call a static method at the same point of time, what will happen?
Should you use singleton pattern?
What is the difference between method and constructor ?
Are true and false keywords?