Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
Event Model 1.0 :
The model for event processing in version 1.0 of the AWT is based
on inheritance. In order
for a program to catch and process
GUI events, it must subclass GUI components and override
either action() or handleEvent() methods. Returning
"true" from one of these methods consumes
the event so it is not processed further; otherwise the event
is propagated sequentially up
the GUI hierarchy until
either it is consumed or the root of the hierarchy is
reached.
The inheritance model does not lend itself
well to maintaining a clean separation between the
application model and the GUI because application code must be
integrated directly into the subclassed
components at some level.
Event Model 1.1 (Delegation Model Overview) :
Event types are encapsulated in a class
hierarchy rooted at java.util.EventObject. An event
is
propagated from a "Source" object to a
"Listener" object by invoking a method
on the listener
and passing in the instance of the event
subclass which defines the event type generated.
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.