What is non static block in java
Answer Posted / raj_allinterview
Non static block is a block which is surounded by { and }
for ex :
{
//code goes here
}
The code within non static block is executed whenever a new
instance of that class is created.
It is instance block.
| Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
What is the difference between jvm and jre? What is an interface?
What is ordered map in java?
What is temp in java?
What is a short in java?
Is space a char?
How to sort an array in java without using sort method?
Can a class declared as private be accessed outside it’s package?
What is size of int in java?
What is the byte order of byte buffer?
Is a case study a method or methodology?
Garbage collection in java?
Why synchronization is important in java?
What is the purpose of the system class in java programming?
What is a Null object?
List types of storage classes in java?