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
Can static methods be inherited?
What is the difference between the font and fontmetrics classes in java programming?
What is Session reduplication and how its done?
What are user defined exceptions?
What is constructor chaining and how is it achieved in java?
Can list be null in java?
Explain about interrupt() method of thread class ?
What is regex java?
What is static data type in java?
What is a local class in java?
What are the two types of streams offered by java 8?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is java virtual machine and how it is considered in context of java’s platform independent feature?
How will you compute size of a structure?
What does java final mean?