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 java regex?
What is meant by method overriding?
What is the difference between call by reference and call by pointer?
What technique is carried out to find out if a particular string is empty?
What is this keyword used for?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is a map? What are the implementations of map?
What is the difference between static (class) method and instance method?
What is xslt in java?
Why null value is used in string?
what is the major difference between linkedlist and arraylist in java?
When can you say a graph to be a tree?
What is parameters example?
What is singleton class in ruby?
Difference between error and exception