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

Do loops java?

0 Answers  


How many types of packages are there in Java?

5 Answers  


Difference between static and dynamic class loading.

0 Answers  


What is Recursion Function?

0 Answers   iNautix,


Is array serializable java?

0 Answers  






how can you catch multiple exceptions in java?

0 Answers   Cyient,


There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods?

5 Answers   HCL,


what are variables in java

7 Answers   Wipro,


What is java object name?

0 Answers  


What does file separator do in java?

0 Answers  


why marker interfaces are there in java

4 Answers   Digital Group,


Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.

5 Answers  


Categories