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 and how do you allocate memory to it?

Answers were Sorted based on User's Feedback



what is an object and how do you allocate memory to it?..

Answer / janet

Object is an instance of a class and it is a software unit
that combines a structered set of data with a set of
operations for inspecting and manipulating that data. when
an object is created using new operator,memory is allocated
to it.

Is This Answer Correct ?    14 Yes 4 No

what is an object and how do you allocate memory to it?..

Answer / devarathnam

Hi... An object is nothing but instance of the class,or
basic run-time entity.By using "new" operator we can
allocate the memory of an object

Is This Answer Correct ?    9 Yes 2 No

what is an object and how do you allocate memory to it?..

Answer / shilpi

object is intance of class whicch use to access data member and data funtion of class.

Is This Answer Correct ?    6 Yes 0 No

what is an object and how do you allocate memory to it?..

Answer / venkatesh

object is a run time entity.by using new keyword we can
allocate memory to it.

Is This Answer Correct ?    6 Yes 0 No

what is an object and how do you allocate memory to it?..

Answer / tulasi

Object is an instance of the class.There are two ways by
which a new object is created.

1.using new operator.
example:
classname objectname=new classname;
This allocates the memory to objectname.

This can be classname objectname by which null values are
set to the objectname and not the values as in the class.

2.without using new operator.
Declare the variables as static and also methods used as
static and by using the keyword static we can create an
instance of the class.
Thus, we use public static void main(String args[])in main
program where theres no need to create a class and also
instance of class using new operator.

Is This Answer Correct ?    8 Yes 3 No

what is an object and how do you allocate memory to it?..

Answer / sunitha

It is an instance of class or run time entity which binds
data members and methods together.
example:
car
Attributes(state of the object)

name, no. make , price, mileage.

Methods (Behavior of the object): start, stop,
Accelerate,
By using new operator we can allocate memory to object.

by using constructions we can allocate memory directly
here we no need to use new operator . for deal location of
memory we can use destruction's .

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

Is there any way to skip finally block of exception even if some exception occurs in the exception block?

0 Answers  


What is native code?

0 Answers  


What is difference between static class and singleton pattern?

0 Answers  


What are the two types of java?

0 Answers  


What is the use of accept () method in java?

0 Answers  


What is e java?

0 Answers  


How to prevent a field from serialization ?

2 Answers  


What is a variable simple definition?

0 Answers  


How do listeners work?

0 Answers  


Can abstract class have private constructor?

0 Answers  


What are Advatages of Overloading and Overridding.

8 Answers   TCS, Wipro,


What is the difference between conversation & casting?

0 Answers  


Categories