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 percentage in java?
What is garbage collection? Can it be forced to run?
Does the order of public and static declaration matter in main method?
What do you mean by singleton class in java?
What are wrapped classes in java programming?
What is Java Package and which package is imported by default?
What is bufferedreader in java?
how does the run() method in runnable work? : Java thread
Who found java?
how do I create a runnable with inheritance? : Java thread
What is numeric function?
What are exception handling keywords in java?
How do you square a number?
What do you mean Abstraction in java?
What is an example of a conditional statement?