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 the argument in java?
What is the largest number a double can hold?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is the purpose of the runtime class in java programming?
List primitive java types?
What type of language is java?
What is parsing a string?
What is set in java?
what is the final keyword denotes in java?
Is string a data type in java?
Which methods are used during serialization and deserialization process?
Can the garbage collection be forced by any means?
List types of storage classes in java?
What does g mean in regex?