what is the difference between static block and static
method
Answer Posted / aluru srinivasa rao
static block is executed first even before constructor is
invoked,static methods are invoked from a static method.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How do you declare an array in java?
Is string is a data type in java?
What do you mean by boolean?
Why pass by reference is not possible in java?
What is java jit compilers?
Define how objects are stored in java?
What is :: operator in java?
When will you define a method as static in Java?
What are the pillars of java?
Can we override compareto method?
Are functions objects in java?
What is the use of optional ?
what is a green thread? : Java thread
Is java a super set of javascript?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?