what is the difference between statis block and static
variable

Answer Posted / narasimha

i wolud like a new point to the above answer.
first the static varibles are inistalized then the static
bloks are executed.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which class is the wait() method defined in? : Java thread

521


What are class types in java?

574


Can we use this () and super () in a method?

527


Explain the importance of throws keyword in java?

565


What is the abstraction?

585






Should you use singleton pattern?

521


What is the default execution method in java?

620


What Is Query Throttling in java?

557


How transient variable is different from volatile variable?

558


What is meant by class loader? How many types are there?

668


How variables are declared?

515


What is java reflection api?

552


What restrictions are placed on method overriding in java programming?

539


why are there separate wait and sleep methods? : Java thread

573


What are the features in java?

574