what is the difference between statis block and static
variable
Answer Posted / suresh.m
staticblock,static variables,static method are executed
before creating an object to be created to class.i think
there is no difference between them.
Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
Explain wait(), notify() and notifyall() methods of object class ?
What is difference between iterator access and index access?
Can this keyword be used to refer static members?
Why does java not allow multiple public classes in a java file ?
Is java a utf 8 string?
What is a final class in java?
What are the four integer types supported by java?
How many bytes are there?
Is boolean a data type in java?
What are instance variables?
What is oop principle in java?
Is java a virus?
Is .net better than java?
How do you execute a thread in java?
Explain polymorphism citing an example.