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 are variables in java

Answer Posted / hemanta paudel

Every data are store in memory and that memory has literal
name that is called variable.There are two type of variable
in java
1. Local variable :- that variable which is declare in
method body or argument list called as local variable and
its are store in stack.
2. Instance Variable:-those variable which are declare
within a class and obtain the memory when the instance of
class is created. Each instance have own variable.

3. Static or class variable:- those variable which are
declare using static keyword and they are load in memory
when class is loaded.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is object a data type in java?

1105


Why does java not support operator overloading?

1130


What is javac in java?

998


Why do I need to declare the type of a variable in java?

1070


Is it possible for a yielded thread to get chance for its execution again?

934


List out benefits of object oriented programming language?

889


What is autoboxing in java?

1060


Explain the importance of import keyword in java?

1007


Can a method inside a interface be declared as final?

998


What are strings in physics?

1007


What is an example of declaration?

1001


What is a for loop in java?

1038


What is public/private protected in java?

1039


How can we pass argument to a function by reference instead of pass by value?

1108


What is a line separator in java?

974