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

What is numeric promotion?

1 Answers  


I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?

8 Answers   Aricent,


What is the use of System class?

1 Answers  


What is a numeric format?

1 Answers  


What is number data type in java?

1 Answers  


What is an object in java and how is it created?

0 Answers  


What is Restrictions in hibernate?

1 Answers   Bally Technologies,


What is the difference between Object and Instance?

5 Answers   TCS,


What is memory leak and how does java handle it?

1 Answers  


What are the escape sequences in java?

1 Answers  


What is the purpose of javac exe?

1 Answers  


What is considered an anti pattern?

1 Answers  


Categories