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
How do you create immutable object in java?
What are implicit objects in java?
what methods would you overwrite in java.lang.object class?
Does every java program need a main?
how to one war file class to another war file class?
Can we have a method name same as class name in java?
What is difference between c++ and java ?
What are operators and its types?
Can I import same package/class twice?
What is matcher in java?
What is main difference between variable and constant?
Explain importance of inheritance in java?
How do you do absolute value in java?
Explain how to force the garbage collection in java.
What is the this keyword?