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
What is a lock or purpose of locks in java?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
What is a method vs function?
What are serialization and deserialization?
What are pass by reference and pass by value?
What is data type modifier?
What is the difference between a checked and an unchecked exception?
Why java is not 100% object-oriented?
What is close method? How it's different from Finalize & Dispose?
What is the use of default method in interface in java?
What does nextint () do in java?
What is the constructor?
What is indexof in java?
What is the memory leak in java?
Program to Find the second largest element in an array.