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 do you mean by default constructor in java?
What is hashmap and map?
Can constructor be inherited?
Why are there no global variables in java?
What is meant by structural programming?
can any body body expalin best definitions & best real time exaples for opps concepts.
What is an abstract class and what is it’s purpose?
What is singleton class and how can we make a class singleton?
What does int [] mean in java?
Can a constructor be protected?
What is the difference between jvm and jre? What is an interface?
What is length in java?
What is the purpose of the system class in java?
Can we override the static method?
What is class variable java?