| CARVIEW |
Select Language
HTTP/2 301
server: AkamaiGHost
content-length: 0
location: https://download.oracle.com/javase/1.5.0/docs/api/java/util/Observer.html
cache-control: max-age=0
expires: Sun, 18 Jan 2026 03:20:08 GMT
date: Sun, 18 Jan 2026 03:20:08 GMT
akamai-request-bc: [a=173.223.162.142,b=4131030940,c=g,n=IN_KA_BANGALORE,o=20940]
akamai-grn: 0.8ea2dfad.1768706408.f63a879c
HTTP/1.1 302 Moved Temporarily
Server: AkamaiGHost
Content-Length: 0
Location: https://docs.oracle.com/javase/1.5.0/docs/api/java/util/Observer.html
Date: Sun, 18 Jan 2026 03:20:08 GMT
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Server: AkamaiGHost
Content-Length: 0
Location: https://docs.oracle.com/javase/1.5.0/docs/api/java/util/Observer.html
Date: Sun, 18 Jan 2026 03:20:08 GMT
Connection: keep-alive
Akamai-GRN: 0.84a2dfad.1768706408.1f71e153
HTTP/1.1 200 OK
Server: AkamaiNetStorage
Content-Type: text/html
Akamai-GRN: 0.8fa2dfad.1768706408.257b723b
ETag: "1139b9883a17b634bb23ecd718636c09:1411363368"
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=21599
Date: Sun, 18 Jan 2026 03:20:10 GMT
Content-Length: 2581
Connection: keep-alive
Observer (Java 2 Platform SE 5.0)
java.util
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.util
Interface Observer
public interface Observer
A class can implement the Observer interface when it
wants to be informed of changes in observable objects.
- Since:
- JDK1.0
- See Also:
Observable
| Method Summary | |
|---|---|
void |
update(Observable o,
Object arg)
This method is called whenever the observed object is changed. |
| Method Detail |
|---|
update
void update(Observable o, Object arg)
- This method is called whenever the observed object is changed. An
application calls an Observable object's
notifyObserversmethod to have all the object's observers notified of the change.- Parameters:
o- the observable object.arg- an argument passed to thenotifyObserversmethod.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.