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 a instance variable in java?
What interface is extended by awt event listeners?
Is alive in java?
Write a program based on Java script program.
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
Can you explain the private protected field modifier?
Explain the difference between an object-oriented programming language and object-based programming language?
What is empty string literal in java?
What is void class in java?
What is the use of coding?
what is session in java?
Where import statement is used in a java program?
Write a java program to check if a number is prime or not?
Why we go for collections in java?
Can we override constructor?