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...

What is an object in Java and what are its benefits?

Answer Posted / sumit pal singh

An object in java is a runtime entity of a java class. It has two characteristics 1. State (variables) and 2. Behavior (methods). It has below benefits

1. By creating the object of one class into another class we can get the state and behaviour of another class . i.e. Composition is best example for using the object.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare an array in java?

980


What are the methods of object class ?

996


How do you override a private method in java?

924


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

914


What is the purpose of extern variable?

962


What is meant by 'bit masking' in java?

1108


What happens if I remove static from main method?

966


Difference between Linked list and Queue?

976


What is a numeric digit?

1024


What is the advantage of preparedstatement over statement?

1043


How to invoke external process in java.

1019


How do you join strings in java?

975


When is an object subject to garbage collection?

989


What is math exp in java?

999


What is anagram number?

879