what is the difference between static block and static
method
Answer Posted / anu
static block is execute first after the remaining blocks will executes.
static metods can executes using classname.staicmethodname
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why is it called a string?
What is formatted output in java?
What are the 3 types of loops in java?
What if I write static public void instead of public static void in java?
How do you compare two strings lexicographically?
What is matcher in java?
what is interface in java? Explain
What is finalize() function in java?
What do you know about the garbage collector in java?
What is empty list in java?
Define jit compiler?
Which of the classes will have more memory allocated?
Explain creating threads by extending thread class ?
What is == and === in javascript?
How can we make a class virtual?