How are Observer and Observable used in Java Programming?
Submitted by: AdministratorObjects 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.
Submitted by: Administrator
Submitted by: Administrator
Read Online Java Job Interview Questions And Answers
Top Java Questions
☺ | What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy in Java Programming? |
☺ | How can you write a loop indefinitely in Java Programming? |
☺ | What is the Locale class in Java Programming? |
☺ | What is the purpose of the wait(), notify(), and notifyAll() methods in Java Programming? |
☺ | What is the Properties class in Java Programming? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |