elibraryportal Logo

Local Inner Class in Java

→ A class that that is created inside the method of other class is know as Local Inner class.

Example

Output:-

Local Inner Class in Java with Example