what is the difference between static block and static
method
Answer Posted / raghavendra
As soon as the class is loaded, the static block will be
executed. Where as the static method should be called
explictly.
Is This Answer Correct ? | 51 Yes | 4 No |
Post New Answer View All Answers
What is an empirical question?
How to run a JAR file through command prompt?
Difference between string s= new string (); and string s = "abv";?
What are the 2 types of java programs?
Is hashset sorted in java?
Can a constructor call the constructor of parent class?
Are variables stored in ram?
What is the function of http?
What is the biggest integer?
Explain inner classes ?
Is string serializable in java?
What are byte codes?
How is Object Oriented Programming different from Procedure Oriented Programming?
How to read and write image from a file ?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.