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


Please Help Members By Posting Answers For Below Questions

What is null data type?

735


What is the main functionality of the remote reference layer?

1676


Why we use multi threading instead of multiprocessing?

801


Where and how can you use a private constructor?

770


Is null an object java?

764


What is the replace tool?

783


Which is fastest collection in java?

778


How do you download stubs from Remote place?

1553


Can a class have multiple subclasses?

832


What is nullpointerexception in java?

758


Explain, java is compatible with all servers but not all browsers?

839


What is ternary operator?

775


Why do we need hashset in java?

750


explain multi-threading in java?

800


Why do we use predicate in java?

832