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
Explain importance of finally block in java?
Can list be null in java?
Can inner class have constructor?
Explain the polymorphism principle?
How to instantiate static nested classes in java?
Can you make a constructor final in Java?
Can we sort hashmap in java?
What 4 doubled?
What is illegal identifier in java?
How does sublist works in java?
What do u mean by variable?
Similarity and difference between static block and static method ?
How do you take thread dump in java?
Does java initialize arrays to zero?
How do you sort a set in java?