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 considered an anti pattern?
Which of the classes will have more memory allocated?
What are strings in physics?
What does it mean that a method or field is “static”?
Can we declare array without size in java?
Is integer a class?
what is collatration?
What is internal iteration in java se 8?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is string in java is it a data type?
What is the null?
What is a java predicate?
what r advatages of websphere? & how to deploy?
What are advantages of using Java?s layout managers than windowing systems?
Is set ordered in java?