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 stack class in java?
What things should be kept in mind while creating your own exceptions in java?
Is zero a positive integer?
Which is best ide for java?
What are accessor methods in java?
How to access arraylist elements in java?
How do you create an array in java?
How many types of voids are there?
What is java volatile?
What are different types of expressions?
What are the types of arrays in java?
How many bytes are there?
How can we create a synchronized collection from given collection?
What is anti pattern in java?
What is unicode used for?