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
What is null data type?
What is the main functionality of the remote reference layer?
Why we use multi threading instead of multiprocessing?
Where and how can you use a private constructor?
Is null an object java?
What is the replace tool?
Which is fastest collection in java?
How do you download stubs from Remote place?
Can a class have multiple subclasses?
What is nullpointerexception in java?
Explain, java is compatible with all servers but not all browsers?
What is ternary operator?
Why do we need hashset in java?
explain multi-threading in java?
Why do we use predicate in java?