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
Explain parallel processing in java8?
What is a substring of a string?
What is supplier in java?
how to convert Java project into Maven ?
Can a class be declared as protected?
What is a final class ?
What are the steps that are followed when two computers connect through tcp?
What is the hashcode () and equals () used for?
What is the default size of load factor in hashing based collection?
Can you change array size in java?
How do I get the | symbol on my keyboard?
Explain some best practices you would apply while using collection in java?
Print Vertical traversal of a Binary Tree.
What is the independent variable in an experiment?
What is the default access specifier for variables and methods of a class?