How are Observer and Observable used?

How are Observer and Observable used?

A list of observers is maintained by the objects of sub class of Observable class. The update() method is invoked when the Observable object is updated. The Observer interface is then implemented by the objects of Observable class.

How are Observer and Observable used?

The observable class represents an observable object.
The object to be observed can be represented by sub-classing observable class.
When there is a change in an observable instance, an application calling the Observable's notifyObservers method causes all of its observers to be notified of the change by a call to their update method.
What is ResultSetMetaData?
ResultSetMetaData is an object that gets information about the types and properties of the columns in a ResultSet object.....
CacheRowset, JDBCRowset and WebRowset
JdbcRowSet is a connected type of rowset as it maintains a connection to the data source using a JDBC driver.....
Difference between static and non-static member of a class.
Difference between static and non-static member of a class - Yes, we can have.
This is also called as constructor overloading....
Post your comment