what is the difference between static block and static
method
Answer Posted / mahendra pratap singh
Static blocks execute first n than static method.It means
static block have high priority compare to static method
Is This Answer Correct ? | 21 Yes | 7 No |
Post New Answer View All Answers
What is a two-pass assembler?
How many bytes is a url?
What's the difference between comparison done by equals method and == operator?
Is vector synchronized in java?
Is alive method in java?
How do you override a variable in java?
What are the types of strings?
What is the do while loop syntax?
If goto and const is reserve words than why it is not work in java?
What is internal iteration in java se 8?
What is super constructor?
What is the purpose of using break in each case of switch statement?
enlist some features of jdk.
I want to persist data of objects for later use. What’s the best approach to do so?
What is an example of character?