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 method in java ?
Why is java multithreaded?
What are the Static and Dynamic Variables? Differentiate them.
What is meant by collection in java?
What are the differences between string and stringbuffer?
What is independent and dependent variables in research?
What is the purpose of java?
What are different access specifiers in java?
What is super?
What is string [] args?
How do you add an arraylist to an array in java?
who can i handle multiple client in RMI
What is proper subset?
Difference between concurrent hashmap and hashtable and collections
What is the exact difference in between Unicast and Multicast object?