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 creating threads by extending thread class ?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is int lol?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
What is data member in java?
Explain the protected field modifier?
What is final keyword?
Who is founder of java?
How does regex work?
How do you check if a number is a perfect square?
How do you get the length of a string in java?
Why is a string immutable?
What is <> used for in java?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What are keywords and reserved words in java?