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

Can a final variable be manipulated in java?

0 Answers  


Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?

5 Answers   Ericsson,


What is an interface in java? Explain

0 Answers  


what is the messsage u r going to get from an objectoriented programing?

0 Answers   MGL,


all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.

4 Answers  






What is I/O Filter?

2 Answers   TCS, WAX,


What is variable and its types?

0 Answers  


What is the purpose of having the concept of overloading?

7 Answers   Ness Technologies,


What is integers and example?

0 Answers  


What is the meaning of I ++ in java?

0 Answers  


What will be the output of round(3.7) and ceil(3.7)?

0 Answers  


Can an exception be rethrown?

4 Answers   Wipro,


Categories