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
Which is better stringbuffer or stringbuilder?
What do you mean by constructor?
Can I declare class as static or private?
What are the different types of data structures in java?
What is the use of parseint in java?
What is variable length arguments in java?
How do you detect memory leaks?
List two java ide’s?
How do you sort data in java?
Why java is platform independent? Explain.
Does apple use java?
Can we overload run() method in java?
How do you do descending order in java?
Explain restrictions on using enum?
What is a hashmap used for?