what is the difference between static block and static
method
Answer Posted / uday
static block is called when we create an object for that class,so it automatically excutes......
for static methods, we can call this methods by class names not by object....
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Which one will take more memory: an int or integer?
What is namespace in java?
What is application system?
What are the types of literals?
What is arrays aslist in java?
How to create a base64 decoder in java8?
What happens if we override only equals?
what is thread in Java ?
What is the difference between super class & sub class?
What is a bufferedreader?
What does regex mean?
Does anyone still use java?
Why java is considered dynamic?
What is the implementation of destroy method in java. Is it native or java code?
What is substring in java?