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
Explain abstract class in java?
Can a constructor be protected?
Write a program to find the greatest of three numbers in java?
What are locale settings?
What is meant by flickering?
Why do we use predicate in java?
What is set and get methods in java?
How does singleton class work?
Describe the process as to how substring() methodology mechanisms in java.
Can a class have an interface?
How hashmap increases its size in java?
List some important characteristics on jre
What are the object and class classes used for?
Is java se open source?
What are design patterns and please explain?