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
How would you use Bubble Sort to sort the number of elements?
Where import statement is used in a java program?
Can we pass null as argument in java?
What is the difference between method overriding and overloading?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What are the types of arrays in java?
If an object is garbage collected, can it become reachable again?
How do you implement singleton class?
Which is dependent variable?
Why is it important to initialize a variable?
What is purpose of applet programming?
What is lazy programming?
What is a website container?
What do you mean by stream pipelining in java 8?
What is difference between adapter class and listener?