What is the difference between static and non-static
variables?
Answer Posted / javeed
* Non-static which ia(instence variable) can be accessed
only inside a non-sattic method.
* A static variable can be axxessed in both static and non-
static methods.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Is java same as core java?
Is it possible to compare various strings with the help of == operator?
Is integer passed by reference in java?
Can keyword be used as identifier?
How do you include a string in java?
What is the difference between static method and instance method in Java?
Can you declare an interface method static?
What is constructor chaining in java?
What are the core java topics?
Is string an object?
Can I use % with real numbers?
What is the difference between iterator and enumeration ?
What is the difference between break and continue statements?
What is a parameter in java?
What is java in detail?