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 is instance means in java?
What is a map in java?
Why is flag used in java?
What is a parameter in matrices?
What is re-factoring in software?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Give some features of interface?
Is there any difference between nested classes and inner classes?
What is a void in java?
Is null == null in java?
What is the default size of set in java?
Can arraylist hold different types java?
What is a finally block? Is there a case when finally will not execute?
what are Hostile Applets?
What is a null check?