Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
Many listener interfaces have more than
one callback method. An example is java.awt.FocusListener
that has two methods; focusGained(java.awt.FocusEvent event) and
focusLost(java.awt.FocusEvent event).
When creating a
listener class that implements the interface the Java compiler insists
that all
of the interface methods are
implemented, which often results in many empty methods
being created to
satisfy its requirements when only one
or some of its methods actually contain code. The following
statement shows a FocusListener being used to perform some
logic when a Java bean gains focus. However,
an empty
focusLost method must be provided.
To avoid having many
empty listener methods for many listeners, Adapter classes are
provided.
These implement the listener interface, and
provide empty no-op implementation of its
methods.
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.