Basic and Advance Java Question:
Download Job Interview Questions and Answers PDF
How are Observer and Observable used in Java Programming?
![Java Interview Answer Java Interview Question](https://globalguideline.com/public/images/interview/6.png)
Answer:
Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
Download Java Interview Questions And Answers
PDF
Previous Question | Next Question |
Which containers use a border layout as their default layout? | What is synchronization and why is it important in Java Programming? |