what is the difference between static block and static
method
Answer Posted / ravikiran
static block is used to initialize the variables during the
JVM startup.
static methods are getting called with out creation of any
instance.
| Is This Answer Correct ? | 34 Yes | 6 No |
Post New Answer View All Answers
What is tcp ip in java?
Can we have static methods in an interface?
What is meant by final class?
Explain abstract class in java?
Difference between arraylist and vector.
Is void a wrapper class?
What is a ternary operator in java? What is an interface?
What is a Null object?
What does java ide mean?
How to display names of all components in a Container?
Can we restart a thread already started in java?
How do you convert int to char in java?
Why do we use string?
What is the difference between final, finally and finalize() in java?
Can you declare the main method as final?