what is the difference between static block and static
method
Answer Posted / hathwar
static block will execute when ever execution starts, it
means this block executes first of all, where as static
block have to call seperately and also it can call with out
object instance.
| Is This Answer Correct ? | 41 Yes | 51 No |
Post New Answer View All Answers
What is meant by string is immutable?
what is the swingutilities.invokelater(runnable) method for? : Java thread
Explain the concept of proper inheritance?
What is meant by null and void?
Is null keyword in java?
What will be the default values of all the elements of an array defined as an instance variable?
What is primitive array?
How to perform bubble sort in java?
Compare Mutex and Semaphore in java.
What is the difference between double and float variables in java?
can I implement my own start() method? : Java thread
Why does java doesnt suuport unsigned values?
What is the purpose of static methods and static variables?
Does java list allow null?
how would you implement a thread pool? : Java thread