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 happens if an exception is not handled in a program?
What is boolean false?
What is pojo class in java?
What is the difference between length and length() method in java?
Define locale.
Can we force garbage collector to run ?
Explain the private protected method modifier?
What happens if constructor is private?
What is the difference between logical data independence and physical data independence?
What steps are taken when the OS shifts from one-thread execution to another?
what is bmg file and how to create that files?what will it contailn?
What is a programming object?
Explain the init method?
What is class array in java?
What is a dynamic array in java?