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’s a deadlock?
Can a class with private constructor be extended?
What is equals method in java?
Explain importance of inheritance in java?
How to find the index of the largest number in an arraylist java?
Why is java multithreaded?
Explain wait(), notify() and notifyall() methods of object class ?
What do you understand by looping in java? Explain the different types of loops.
What is difference between string and stringbuffer?
How do you identify independent and dependent variables?
How do you use parseint in java?
How define set in java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What is the this keyword?
What is unicode with example?