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


Please Help Members By Posting Answers For Below Questions

How to perform linear search in java?

731


What are the ways to instantiate the class class?

778


Explain what do you mean by functional overloading in java?

753


What are the methods of object class ?

750


Is null or empty java?

730






What do you mean by object?

705


Explain features of interfaces in java?

741


What data type is string java?

721


How many boolean functions are there?

701


What is a percentage sign called?

805


Can a constructor be made final?

859


What is main in java?

752


What is the byte range?

776


What is the difference between final, finally and finalize() in java?

751


Can keyword be used as identifier?

719