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 anagram of a string?
What is immutable data?
What is the difference between synchronized and synchronized block?
Convert a BST into a DLL and DLL to BST in place.
How do you calculate square roots?
What is the use of conditional statement?
What do bitwise operators do?
What is the file type?
What is the purpose of default constructor?
Can an interface have a class?
What are the topics in advance java?
How is a variable stored in memory?
What is the use of arraylist class in java?
How objects are stored in java?
What is meant by singleton class?