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
What are the five major types of reference sources?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is the main difference between java platform and other platforms?
What is floating data type?
What is the generic function?
What is primitive array?
give an example for encapsulation?
Can we increase array size dynamically in java?
How do you reverse sort a list in java?
Does A Class Inherit The Constructors Of Its Superclass?
What is parsing a sentence?
What is meant by memory leak?
Should database connections be singleton?
What is meant by class loader? How many types are there? When will we use them?
What is the association?