what is the difference between static block and static
method
Answer Posted / khasim
static block will be called at the time of loading the
class.it can be called once.developer can not be called
expecitly
static method will called at the time of loading the
class.here we can call expecitly by using there classname
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Do loops java?
Where are the card layouts used?
How to make a read-only class in java?
Can you pass by reference in java?
Can we execute a program without main() method?
Can you tell me range of byte?
What is a string token?
How finally used under exception handling?
how to create multithreaded program? : Java thread
Is passing by reference faster?
what is anonymous class in java?
What does jenkins do?
Difference between overriding and overloading in java?
What is the difference between stream and buffer?
What type of value does sizeof return?