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
How do you calculate roots in java?
What is a stringbuilder?
Difference between a process and a program?
Tell us something about different types of casting?
Can we have a try block without catch block?
Whats the difference between notify() and notifyall()?
Which is better stringbuilder or stringbuffer?
Can we use string in switch case in java?
What is boolean in java?
What are the drawbacks for singleton class?
How will you get the platform dependent values like line separator, path separator, etc., ?
Give any two differences between C++ and java.
Is arraylist a class in java?
What is double word?
What happens if I remove static from main method?