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
Is java an open source?
What is indexof?
Why synchronization is important in java?
What is floating data type?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Can we use this () and super () in a method?
What is array length in java?
Can java run on google chrome?
What is the purpose of garbage collection in java? When is it used?
how to split string in java?
Why generics are used in java?
What are keyboard events?
How concurrent hashmap works?
Which of the following classes will have more memory allocated?
Write a function to print Fibonacci series and Tribonacci series?