What is the difference between static and non-static
variables?
Answer Posted / sathya
Static variables:
There is only one copy of static variable and even
when the class is instatiated, the value remains the same.
Non-static variables:
Every time the class is instatiated, the objest has
their own copy of these variables.
Is This Answer Correct ? | 72 Yes | 13 No |
Post New Answer View All Answers
What does isempty () do in java?
Why wait and notify methods are declared in object class?
What is appletviewer?
what is meant by Garbage collection?
what is the difference between future and callable interface in java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Can we serialize singleton class?
How do I stop concurrentmodificationexception?
How to create a base64 decoder in java8?
Explain Basics of OOP Language in java
What is the purpose of javac exe?
Is null false in java?
What are the advantages of arraylist over arrays?
What are 5 boolean operators?
What is the difference between == and === javascript?