What is local block in Java?

A block defined inside a method, block, or constructor is called local block in Java. It is also called inner block in Java. It will be executed whenever the enclosing method, constructor, or block is executed. It is not similar to the instance block.

Sizin İçin Seçtik  What is the object in Java with example?

Leave a Reply

Your email address will not be published. Required fields are marked *