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 does this () mean in constructor chaining concept?
What does i ++ mean in Java?
Why synchronization is important?
If a class is declared without any access modifiers, where can the class be accessed?
What are the new features in java 8? Explain
What is lambda expression in java?
How will you call an Applet using Java Script Function?
What is nested interface?
What are the different conditional statements?
what is predefined function in java?
Does importing a package imports its sub-packages as well in java?
Is cout buffered?
How do you remove duplicates in java?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is outofmemoryerror in java?