What is the difference between static and non-static
variables?
Answer Posted / pravallika
in case of static variables memory can be allocated only at once and these variables can access with help of class name but where as non static variables have memory can be allocated in separate locations.And these variables can access with help of object
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a file pointer?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Which class contains a method: cloneable or object?
Tell me a few examples of final classes defined in Java API?
Difference between string, string builder, and string buffer?
What is the difference between synchronized and synchronized block?
Java is pass by value or pass by reference? Explain
Explain the differences between static and dynamic variables?
What is the difference between instanceof and isinstance?
What is a protected void?
What is arrays aslist in java?
What is a string token?
How will you print number in reverse (descending) order in BST.
what is synchronization and why is it important? : Java thread
What is super?