what is the difference between static block and static
method
Answer Posted / sukhvider
static block executes whenever the class loaded in the Java virtual machine that means object is before going to main Method.
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is not object oriented programming?
Write a java program to print fibonacci series?
What is pangram in java?
Should you use singleton pattern?
What does method mean?
Where import statement is used in a java program?
How to compare strings in java?
What is palindrome in java?
What do you mean by aggregation?
Can two objects have same hashcode?
What is struts in java?
Java is Pass by Value or Pass by Reference?
Is java 11 paid version?
What is the difference between Java and C++?
What is output buffer?