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
What is a final class in java?
What is space character in java?
What is an empty class? What functionality does it offer in Java?
Why are arrays useful in java?
Can we override data members in java?
Which one of the following suits the description of a string better: derived or primitive?
What is a condition in java?
What does compareto () do in java?
How do you convert string to int in java?
Where is the find and replace?
What causes memory leak in java?
What do you understand by private, protected and public?
Can a main method be overloaded?
Can a class be private or protected in java?
What is compareto?