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
Does java trim remove newline?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
How do you read and print a string in java?
How do you add an arraylist to an array in java?
What is parseint?
Explain about fail fast iterators in java?
What is the purpose of a volatile variable?
What is the difference between variable & constant?
What are mutable classes?
Why do we use string?
What is the relationship difference the canvas class and the graphics class?
Is int primitive data type?
What is a bufferedreader?
What is flag in java?
What is the purpose of the System class?