What are the observer and observable classes?

Answer Posted / nashiinformaticssolutions

Objects that inherit the "Observable class" take care of a list of "observers."
When an Observable object gets upgraded, it calls the update() method of each of its observers.
After that, it notifies all the observers that there is a change of state.
The Observer interface gets implemented by objects that observe Observable objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable explain?

615


What is meant by vector class, dictionary class, hash table class, and property class?

779


How to reverse string in java?

714


Can we make constructors static?

824


What is class and object in java?

648






Write a program to print fibonacci series

710


What is object english?

678


What is string immutability?

630


When does an object becomes eligible for garbage collection in java?

682


What is io stream in java?

612


What are the main concepts of oops in java?

751


How an object is serialized in java?

627


What is the similarity between dynamic binding and linking?

678


do I need to use synchronized on setvalue(int)? : Java thread

643


What is void in java?

690