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 / javamasque

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. Encapsulation (Data hiding): It hides data and internal implementation from other objects.
2. Modularity (task modulation): It contains a set of activities for a specific task of an application.
3. Reusability: It facilitates reusability of functionality through inheritance.
4. Easy maintenance: It enhance the readability and understandability of an application. It also helps the developer to trace bugs in an application.
5. Pluggable/Unpluggable: An erroneous/unwanted object can be removed and a new object can be added in an application.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a security risk?

959


How will you print number in reverse (descending) order in BST.

942


what is meant wrapper classes?

1094


Does A Class Inherit The Constructors Of Its Superclass?

995


State differences between C and Java?

1144


What is the method in java?

1020


Where are local variables stored?

913


What is replacefirst in java?

1022


Explain an intermediate language?

893


What is string in java?

959


Which object oriented concept is achieved by using overloading and overriding?

1038


What is runtime polymorphism or dynamic method dispatch?

969


what is the difference between thread and runnable types? : Java thread

947


What does jenkins do?

863


Write a program to print 15 random numbers using foreach of java 8?

888