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

How many types of design patterns are there?

735


What is use of super keyword?

722


What is polymorphism java example?

729


How list contains works in java?

713


Explain the use of sublass in a java program?

732






What is ph and buffers?

695


What is arraylist e in java?

691


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1034


When do I need to use reflection feature in java?

783


What are anonymous inner classes?

716


How are variables stored?

705


Can we access the non-final local variable, inside the local inner class?

726


What is getkey () in java?

742


Why is singleton instance static?

690


Why are there no global variables in java?

738