What is non static block in java
Answer Posted / varun reddy
Non-static block is called anonymous block.the block of code which is return inside a non static block is executed on creation of object and before invoking clonstructor.
Syntax of non static block::::-------
{
statements;
}
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between sleep and wait in java?
Why java is call by value?
Is integer immutable in java?
What is module in project?
Explain the difference between abstract classes and interfaces in java?
Discuss about garbage collector in Java.
Write a program to print count of empty strings in java 8?
What is finalize() function in java?
What is protected in java?
Can java arraylist hold different types?
How does hashset works in java?
Does sprintf add a null terminator?
Does java allow overriding static methods ?
Can we use a switch statement with strings?
How do you remove all elements from an arraylist in java?