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 is the most important feature of java? What is an interface?
What are the three parts of a lambda expression? What is the type of lambda expression?
Explain the transient field modifier?
Is it necessary that each try block must be followed by a catch block?
What is a stack class in java ?
What is difference between jdk,jre and jvm?
How many types of memory areas are allocated by JVM in java?
What do you understand by abstract classes?
What is supplier in java?
What is rmi and steps involved in developing an rmi object?
What is keyword and identifier?
What is the use of optional ?
What are the access modifiers available in java?
Why collection is called framework in java?
What is mvc in java?