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
What is a newline character in java?
Explain about collection interface in java?
What is core java called?
How do you add an element to a hashset in java?
How do you initialize an arraylist in java?
can I implement my own start() method? : Java thread
What is the protected method modifier?
What is the use of list in java?
How can an exception be thrown manually by a programmer?
What are void pointers?
What are the common uses of "this" keyword in java ?
What is array in java?
What is the constructor?
What is object-oriented paradigm?
How to instantiate member inner class?