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
Can we override data members in java?
Can I overload to string method
What is the driver class?
Does chrome use java?
What is the purpose of object oriented programming?
Is vector thread safe in java?
What are green threads in java?
Are maps ordered java?
What is byte code and why is it important to java’s use for internet programming?
Can Exception handling we can handle multiple catch blocks?
What is the main use of java?
Differences between external iteration and internal iteration?
List the three steps for creating an object for a class?
When is the finalize() called? What is the purpose of finalization?
Difference between class#getinstance() and new operator ?