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 is final int?
What is args length in java?
What is application system?
Why is java called the platform independent programming language?
How to calculate the length of a singly linked list in java?
What is meant by stack and queue?
Tell me are there implementations for sorting and searching in the java libarary?
What is space character in java?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
How many types of flags are there?
Discuss 2D arrays.
What is return null in java?
What is the use of singleton class?
Is java se open source?
Is sizeof a keyword in java programming?