what is the difference between static block and static
method
Answer Posted / raghavendra
As soon as the class is loaded, the static block will be
executed. Where as the static method should be called
explictly.
| Is This Answer Correct ? | 51 Yes | 4 No |
Post New Answer View All Answers
What exactly is java?
What is generic class?
How are this() and super() used with constructors in java programming?
What does snprintf return?
Can singleton class be cloned?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
Is arraylist a class in java?
What does those terms actually mean included in the j.d.k i.6?
What does bitwise or mean?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
How many bits is a string?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Can we create a class inside a class in java?
Where is core java used?
What is the default size of set in java?