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 the volatile modifier for? : Java thread
What are exceptions
What's the base class of all exception classes?
Why we go for collections in java?
Does list allow duplicates in java?
What is a priority queue java?
What are basic data types?
What is the common usage of serialization? What exceptions occur during serialization?
What is default locale java?
Explain static nested classes ?
What is use of set in java?
What is the technique adopted to create an immutable class?
What is Java Package and which package is imported by default?
What is meant by javabeans?
What are benefits of java?