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 two categories of data types in the java programming language?
Explain about object oriented programming and its features?
What is the format specifier?
Is it possible to use string in the switch case?
What is difference between length and length() method in java ?
What is java in detail?
How can you traverse a linked list in java?
Are generics important java?
What are the data types supported by java? What is autoboxing and unboxing?
Can we write method inside a method in java?
How will you reverse a link list without using recursion?
What are the two main uses of volatile in Java?
What is the longest unicode character?
What is the significance of java packages?
Describe the process as to how substring() methodology mechanisms in java.