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
Which class should you use to obtain design information about an object in java programming?
what is meant by Byte code concept in Java?
Is space a character in java?
What is nested interface?
What was java originally called?
What do you know about the garbage collector?
Give us a program to check for parenthesis matching using stack.
What is main method?
What is ternary operator in java?
Explain what is encapsulation?
Can inner class extend any class?
Which list does not allow duplicates in java?
Is linked list a linear or non-linear data structure?
Is empty string in java?
Can you explain the private protected field modifier?