what is the difference between static block and static
method
Answer Posted / sukhvider
static block executes whenever the class loaded in the Java virtual machine that means object is before going to main Method.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Is singleton a bad practice?
What is the parse method in java?
How many bits is a word?
What is subsequence of a string?
Can we access the non-final local variable, inside the local inner class?
What is the return type of the main method?
Is java pass by value or pass by reference?
What is the internal implementation of set in java?
what is meant by HQL?
What does function identity () do?
Why generics are used in java?
Write a program to reverse a number in java?
What causes memory leak in java?
hr interview how many minutes asking question
Why main() method is public, static and void in java ?