what are variables in java

Answers were Sorted based on User's Feedback



what are variables in java..

Answer / 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

what are variables in java..

Answer / rhupendra

variables are define by data type

if we want to use the memory that we have to use data type

Is This Answer Correct ?    8 Yes 2 No

what are variables in java..

Answer / yashwanth66

static and dynamic variables

Is This Answer Correct ?    7 Yes 1 No

what are variables in java..

Answer / rice

Java support Three types of variables
1.)static
2.)Instance
3.)Local

Is This Answer Correct ?    4 Yes 2 No

what are variables in java..

Answer / monu sharma

Two types of variables in java
1)Static variable
2)Dynamic variables

Variables :Declaring, instantiating, initializing, and
manipulating a reference variable

Is This Answer Correct ?    1 Yes 1 No

what are variables in java..

Answer / guest

Instance variables-within the class
Local variables-within the methods

Is This Answer Correct ?    0 Yes 0 No

what are variables in java..

Answer / naga sayan

varaiable is a name given to a memory location.ther are two
types of variables.I java variables are nothing but data
members
static variables and dynamic variables

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

java can provide security ,how can provide?

8 Answers   Aspire, BNP Paribas, Genpact, IBM,


What are the escape sequences in java?

0 Answers  


what is meant by string pooling?

12 Answers   Oracle, Polaris, Tribal Fusion, Wipro,


What advantage does an entity bean have over a sessin bean?

3 Answers   Adobe,


how can we synchronize Hash map?

3 Answers   CTS,


Explain the selection sort algorithm and state its time complexity?

0 Answers   Flextronics,


What is the driver class?

0 Answers  


In how many ways we can do exception handling in java?

0 Answers  


Why can't we override private static methods?

0 Answers  


In how many ways we can the thread? in java

3 Answers  


Can a top level class be private or protected?

0 Answers  


what is java bean?where can we use it?

12 Answers   TCS,


Categories