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 the difference(or similarity if there are some)
between object and a variable?

Answer Posted / dipty

A variable can hold asingle type of variable at a time..but an object can hold a number of variables of different type.

int a = 4; // a would be the variable
Car b = new Car();// b is an object
b.carGo();// this is an method in the object car created below.
class Car()
{
void carGo()
{
car moves;
}
}

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between serial and throughput garbage collector?

1157


What is the difference between yield() and sleep()?

1065


What is the use of arrays tostring () in java?

1070


What are internal variables?

1052


Can a variable be local and static at the same time?

1052


What is java util?

1069


Explain public static void main(string args[]) in java.

1047


explain local datetime api in java8?

1055


What is the abstract class?

1090


Convert a BST into a DLL and DLL to BST in place.

1156


What is update method called?

1205


What is variable and its types?

1080


Is a case study a method or methodology?

949


What is instance means in java?

1096


What is a linkedhashmap java?

1054