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

Explain parallel processing in java8?

1155


What is a substring of a string?

1080


What is supplier in java?

954


how to convert Java project into Maven ?

1001


Can a class be declared as protected?

958


What is a final class ?

1080


What are the steps that are followed when two computers connect through tcp?

945


What is the hashcode () and equals () used for?

955


What is the default size of load factor in hashing based collection?

986


Can you change array size in java?

917


How do I get the | symbol on my keyboard?

1022


Explain some best practices you would apply while using collection in java?

980


Print Vertical traversal of a Binary Tree.

979


What is the independent variable in an experiment?

906


What is the default access specifier for variables and methods of a class?

1133