What is the difference between static and non-static
variables?
Answer Posted / ravikiran
static variables are class variables and the values remains
same fr the whole class
nonstatic variables are of two kinds
global variables:are the variables which defines variables
which can be accesible over the whole class
local variables:the scope of local variables is with tin
the method only
| Is This Answer Correct ? | 29 Yes | 15 No |
Post New Answer View All Answers
What does void * mean?
According to java operator precedence, which operator is considered to be with highest precedence?
explain local datetime api in java8?
Is java se free?
what is meant by Garbage collection?
List down the methods and interfaces of collection class in java.
What is static synchronization?
What do you understand by java virtual machine?
Why map is used in java?
Can a class have 2 constructors?
What is difference between adapter class and listener?
Tell some latest versions in JAVA related areas?
What is Enum in Java?
Explain parallel processing in java8?
Is void a keyword in java?