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
which class is the wait() method defined in? : Java thread
What are class types in java?
Can we use this () and super () in a method?
Explain the importance of throws keyword in java?
What is the abstraction?
Should you use singleton pattern?
What is the default execution method in java?
What Is Query Throttling in java?
How transient variable is different from volatile variable?
What is meant by class loader? How many types are there?
How variables are declared?
What is java reflection api?
What restrictions are placed on method overriding in java programming?
why are there separate wait and sleep methods? : Java thread
What are the features in java?