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 memory tables?
What is ternary operator in java?
Are arrays primitive data types?
Can you give names of Container classes?
What is a double?
How do you sort an array in java?
How many bytes is string in java?
What is the purpose of void class?
What is main difference between variable and constant?
What is a copy constructor in java?
How do you clear a list in java?
What are static methods?
Variable of the boolean type is automatically initialized as?
What is a boolean output?
What is java in detail?