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
If goto and const is reserve words than why it is not work in java?
Explain where variables are created in memory?
What does method mean?
What is lambda in java?
What is the difference between choice and list?
How do you print array in java?
What is the basic concepts of OOPS?
What happens if constructor is private?
What Is Query Throttling in java?
What is a lock or purpose of locks in java?
Explain the difference between jvm and jre?
Explain wrapper classes in java?
Why use string handling in Java?
What are the different ways of creating thread?
What is the difference between private & public & friendly classes?