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 are the java ide’s?
What is string subsequence method?
Can we convert stringbuilder to string in java?
Explain about the main() method in java?
What is the difference between comparison done by equals method and == operator?
How do you start a new line in java?
Can a class have multiple constructors?
What is constructor in java ?
What is the function of log?
Why do we use bufferedreader?
What is final, finally, finalize?
what is method reference in java 8?
Explain tree set and its features?
Write a program to check for a prime number in java?
Is a boolean 1 bit?