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
Is object a data type in java?
Why does java not support operator overloading?
What is javac in java?
Why do I need to declare the type of a variable in java?
Is it possible for a yielded thread to get chance for its execution again?
List out benefits of object oriented programming language?
What is autoboxing in java?
Explain the importance of import keyword in java?
Can a method inside a interface be declared as final?
What are strings in physics?
What is an example of declaration?
What is a for loop in java?
What is public/private protected in java?
How can we pass argument to a function by reference instead of pass by value?
What is a line separator in java?