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
What is size_t?
What is ternary operator? Give an example.
What is comparable and comparator interface? List their differences
How do you create a sop?
How can you set the applet size?
Can you explain the private protected field modifier?
What is jvm? How its run?
Write a program to check for a prime number in java?
What is google full form?
What is bufferedwriter?
What are the data types supported by java? What is autoboxing and unboxing?
What is anti pattern in java?
What is the difference between superclass and subclass?
How do weakhashmap works?
What classes of exceptions may be caught by a catch clause in java programming?