what is the difference between static block and static
method
Answer Posted / uday
static block is called when we create an object for that class,so it automatically excutes......
for static methods, we can call this methods by class names not by object....
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is wrapper class html?
What is busy spin, and why should you use it?
Why is the singleton pattern considered to be an anti pattern?
Write java program to reverse string without using api?
What happens when you add a double value to a string?
what is meant by encapsulation?
What is meant by method overriding?
What does replaceall do in java?
Explain the meaning of java applet.
What is a local, member and a class variable?
Does java isempty check for null?
What is jpa specification?
Does anyone still use java?
Can we create a class inside a class in java?
What are jee technologies?