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

Is set thread safe java?

925


Discuss 2D arrays.

1051


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1088


Which class represents the socket that both the client and server use to communicate with each other?

1042


How infinite loop is declared?

1021


What is qualitative variable?

928


What is a numeric format?

1094


Are maps ordered java?

961


Explain methods specific to list interface?

984


What are the differences between c++ and java?

1140


What is preparedstatement in java?

1050


What is the access scope of protected access specifier?

999


What is defined as false sharing in the context of multithreading?

1045


Which collection is best for sorting in java?

1126


Why we override equals() method?

1040