Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How are Observer and Observable used?

Answer Posted / supriya

Subclass of Observable class maintain a list of observers.
Whenever an Observable object is updated, it invokes the
update() method of each of its observers to notify the
observers that it has a changed state.
An observer is any object that implements the interface
Observer.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a newline character in java?

1092


What is runtime polymorphism or dynamic method dispatch?

1053


What is an immutable class? How to create an immutable class?

1122


What is not object oriented programming?

999


What is variable explain?

1052


Explain 5 io best practices?

1091


What is the use of flag?

1144


Can an interface have a class?

1051


Can a final variable be null?

1064


Should a main method be compulsorily declared in all java classes?

1140


What are inbuilt functions in java?

1171


What does it mean that strings are immutable?

1187


Why is core java important?

1090


How to sort double array in java?

1043


What are the disadvantages of object oriented programming?

1353