what is the difference between static block and static
method
Answer Posted / sukhvider
static block executes whenever the class loaded in the Java virtual machine that means object is before going to main Method.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
How many java versions are there?
What is ide with example?
Difference between method overloading and overriding.
What is the transient keyword?
Difference between stack and queue?
How hashset works internally in java?
Difference between concurrent hashmap and hashtable and collections
What is the major drawback of internal iteration over external iteration?
Explain, java is compatible with all servers but not all browsers?
What is fundamental datatype?
What is the use of StringTokenizer class?
What is the difference between I ++ and ++ I in java?
What is hashset in java?
What is the epoch date?
What is variable in java?