Static inner class in java

Ashok Veer | May 21, 2020 |


In java a static class which is defined inside another outer class is called static nested class or static inner class. A static inner class is nested class which can be accessed without creating the object of the outer class. We can access like static other static members of class.
A static inner class have does not access to the outer class instance variable and methods. Below is syntax of the static nested class. read more

Share this article

0 comments:

Post a Comment

 
Copyright © 2019 techfloaters • All Rights Reserved.
Template Design by Ashok Veer ( veersoft solution)