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 is thread start?
What is mnemonic in assembly language?
How is the marker interface used in Java?
What is compareto?
What is autoboxing and unboxing?
Do we need to manually write Copy Constructor?
What are accessor methods in java?
What are the different data types in java?
What is the difference between static binding and dynamic binding?
Will set allow duplicates in java?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is nested top-level class?
difference between byte stream class and character stream class?
Are strings immutable in java?
Is namespace same as package in java?