Skip to content

Commit 5dd2f88

Browse files
Update README.md
1 parent 530e241 commit 5dd2f88

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6026,6 +6026,41 @@ LocalInterfaceMethod(){...};
60266026

60276027
</ul>
60286028

6029+
<h3><li> 3) Static Nested Inner Class </li></h3>
6030+
<ul>
6031+
<h3><i>As the inner class is static , we will not make any object of Outer class and call directly the inner class in respect of outer class to create an object, and object call the inner class method.</i></h3>
6032+
6033+
<h3>
6034+
6035+
```Syntax
6036+
6037+
OuterClass{
6038+
6039+
static InnerNestedClass{
6040+
6041+
LocalMethod(){....}
6042+
6043+
}
6044+
6045+
Main(){
6046+
6047+
OuterClass.InnerNestedClass innerobj =
6048+
new OuterClass.InnerNestedClass<>();
6049+
6050+
innerobj.LocalMethod();
6051+
}
6052+
6053+
}
6054+
6055+
```
6056+
</h3>
6057+
6058+
<ul>
6059+
<h3><li><a href="https://github.com/AvinandanBose/JavaGeneric/blob/main/InnnerClass10.java"> Static Nested Inner Class-Eg(1)</li></h3>
6060+
</ul>
6061+
6062+
</ul>
6063+
60296064
</ul>
60306065

60316066

0 commit comments

Comments
 (0)