What are the observer and observable classes?



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

Post New Answer

More Core Java Interview Questions

Can java inner class be static?

0 Answers  


Why singleton is not thread safe?

0 Answers  


Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?

4 Answers   Satyam,


why java is better then .net?

5 Answers   HCL, iGate,


Why inputstreamreader is used in java?

0 Answers  






Inorder to specify a container?s layout, which method is used?

1 Answers  


why top level class could not be static

3 Answers   L&T,


What are the different types of inner classes?

0 Answers  


How we get some middle records in one table?

2 Answers   3i Infotech,


What is the relationship between class and object?

0 Answers  


what is business delegate?

2 Answers   TCS,


What is the default value of float and double datatype in java?

0 Answers  


Categories