What is difference between static method and static
variable?
Answer Posted / n.siddardh
static variable copy is available to every object in the
memory if we change one value in an object there no effect
inother objects,and if we declare a method as static that
will be executed by the JVM like main method
The execution of JVM
1.static block
2.static methods
3.Instance methods
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
What happens to a static var that is defined within a method of a class?
What is OOP Language?
Can you instantiate the math class in Java?
What is java’s garbage collected heap?
What is variable declaration and definition?
what is heap memory?
What is the primary benefit of encapsulation?
What are the differences between this and super keyword?
What is an escape character in java?
What is the difference between stream and buffer?
Why unicode is important?
What does sprintf mean?
What are the rules for naming an array?
What does it mean that a class or member is final?
Can list be final in java?