what is the difference between static block and static
method
Answer Posted / himanshu kumar upadhyay
Static block is executed when the class which contain static
block is loaded in to memory and static method is executed
when it is called. Mostly static block is used for
Initialization of static members.
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
Is string is a data type in java?
What is the relationship difference the canvas class and the graphics class?
Can we clone singleton object?
What do you understand by casting in java language?
What is Session reduplication and how its done?
Explain the significance of listiterator.
What is the scope or life time of instance variables?
How finally used under exception handling?
Which class is the superclass for all the classes?
What is a instance variable?
Which package has light weight components in java programming?
Can we overload run() method in java?
What is java regex?
What is arrays fill in java?
What is var keyword ?