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
Is .net better than java?
What are reference variables in java?
What is java volatile?
What is the significance of java packages?
How do you sort a set in java?
What is difference between array and arraylist in java?
Is minecraft java edition free?
What is the maximum length of a url?
explain the concept of virtual method invocation in polymorphism in detail?
Is class is a data type?
What is meant by local variable and instance variable?
Can we declare a class as static?
When parseint method can be used?
Explain about complier design(phases)
Difference between static binding and dynamic binding?