What are the observer and observable classes?
Answer / 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 |
Are floats faster than doubles?
What happens when I use / and % with a negative numerator?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Is java map thread safe?
What is mean by UML? what is the use? where we are using?
What is use of static method?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
Explain the selection sort algorithm?
What are new features introduced with java 8 ?
What is identifier give example?
Why convert an applet to an application?
Does collectionutils isempty check for null?