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 design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is the core java?
Explain about fail safe iterators in java?
Can we instantiate interface in java?
Explain the importance of finally over return statement?
Why wait and notify methods are declared in object class?
What is JFC?
Why is stringbuffer not immutable?
Can a method be overloaded based on different return type but same argument type?
What are methods?
What is the replace tool?
What is the difference between int and integer in java?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
What is Mutex (Mutual Exclusion Object) ?
What is a Hash Table? What are the advantages of using a hash table?