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 purpose of stub and skeleton?
What is thread safe java?
Can a constructor be private and how are this() and super() method used with constructor?
What is the major drawback of internal iteration over external iteration?
What is the difference between inheritance and encapsulation?
Explain java coding standards for methods?
Why char array is preferred over string for storing password?
What is Session reduplication and how its done?
How do you square a number?
Difference between a process and a program?
What's the difference between an abstract class and interface in java?
Explain the importance of finally block in java?
How we can run a jar file through command prompt in java?
Can we have any code between try and catch blocks?
Is main is a keyword?