Results 1 to 4 of 4

Thread: core java

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    3

    core java

    what are Observer and Obeservable in Java?


  2. #2
    Junior Member
    Join Date
    Apr 2007
    Answers
    1

    Re: core java

    Objects that subclass the Observable class maintain al ist 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.


  3. #3
    Junior Member
    Join Date
    Oct 2007
    Answers
    3

    Re: core java

    Thank's Kiranmaye.


  4. #4
    Junior Member
    Join Date
    Nov 2006
    Answers
    3

    Re: core java

    The observable class is used to create subclasses that other parts of your program can observe.

    When an object of such a subclass undergoes a change, observing classes are notified.
    obeserving classes must implement the observer interface, which defines update method.

    OBSERVER : To observe an observable object you must implement the observer interface. This interface defines only one method called update().


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact