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 a static class can contains?

1154


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2473


What is a parameter used for?

963


I want to persist data of objects for later use. What is the best approach to do so?

1066


What does int argc char * argv [] mean?

997


Explain about narrowing conversion in java?

1010


Explain the concept of proper inheritance?

1068


Tell me about your ability to work under pressure

2198


What is the difference between a constructor and a method?

1256


Name few "optional" classes introduced with java 8 ?

1137


Can a abstract class be declared final?

999


What is hotjava?

1009


How would you dynamically allocate memory to an array?

1041


What is string english?

1018


Can we define a package statement after the import statement in java?

1067