answersLogoWhite

0

Object - When there is an value.

int[] arr={1,2,3};

Instance - when there is a declaration for class with 'new'.

String arr=new String("test");

A obj2 = new A(); //this is the object instance with occupy memory for this..

For user defined classes, object and instances are same.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between classes and object in C?

An object is an INSTANCE of a class. Human is a class, while YOU are a person, an instance of Human class, but YOU do not represent the entire human class. Or, a class provides the abstraction, and an object is a typical example of that abstraction. Classes provide a blue print to build a real instance of an object.


What is the Difference between relation schema and relation instance?

difference between relation sehema and relation instance in dbms


What is the difference between a class method and object in object-oriented C?

Class methods are the member functions that act upon member variables. An object is an instance of a class. C does not support object-oriented programming, but C++ does.


What is difference between an instance variable and a class variable?

An instance variable is typically associated with an object instance of the class whereas class variable is not associated with any object instance. Static variables are referred to as class variables while non-static regular variables are called instance variables. Simply put, you will have as many instances of the instance variable as there are object instances. i.e., if there are 10 instances of an object, you will have 10 instances of that instance variable as well. But, there will be only one instance of the static or class variable. Instance variables are accessed as follows: objname.variableName; Class variables are accessed as follows: ClassName.variableName;


What is the difference between a form file object and a windows form object?

difference between a form file and a form.


difference between tripitaka and jataka?

[object Object]


What is the difference between force and tension?

[object Object]


WHAT IS BETWEEN MATTER AND MATTER?

Well, in one instance matter is the atoms making up every object on Earth and beyond it, measured by mass, volume, and density. In another instance, things that matter are things that are important. There is a large difference between the meaning of the words.


What is the difference between instantiation and initialization in C plus plus?

Instantiation is creating the instance of the variable/object . While Initialization is to provide the variable with some value. int i; // i is an instance of an integer i=10; //initialised with the value 10


What is the difference between geometric and stylized design?

[object Object]


What is the difference between 25 and -13?

38


what is the biggest difference between soot and diamond?

[object Object]