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 do you mean by data type?
Differentiate between overriding and overloading cases?
What is an object class?
What is unicode used for?
What is the difference between processes and threads?
Is node a data type in java?
How many bits is a boolean?
Explain about the select method with an example?
Is null an object in java?
What are the different ways of creating thread?
Can you create an object of an abstract class?
what is object-oriented programming in java?
What is string in java?
Can a final variable be manipulated in java?
What is a top level class in java?