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

What are the benefits of operations in java?

946


What are generic methods?

915


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

958


What is a line break?

972


Difference between vector and arraylist.

1035


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2061


Can we override data members in java?

1086


What are the advantages of inner classes?

950


What are the elements of java?

969


What does pointer mean?

978


Can you instantiate the math class?

994


What is the declaration statement?

892


What are the methods used to implement for the key object in the hash map?

986


Can a class have an interface?

921


What is size_t?

936