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
Implement a stack with push (), pop() and min() in O(1) time.
What class allows you to read objects directly from a stream in java programming?
Tell us something about an iterator.
What are the methods to rectify ambiguities in the interfaces in JAVA?
Explain reverse a linked list recursive java solution?
What is the lifetime and scope of a variable?
How can we make string upper case or lower case?
How large is a boolean?
What do you understand by access specifiers in Java?
Why set is used in java?
Is it possible to instantiate the abstract class?
What is intern method in java?
What are class members by default?
Define jre i.e. Java runtime environment?
What is method overloading in java ?