Java Local inner class
A class i.e. created inside a method is called local inner class in java. If you want to invoke the methods of local inner class, you must instantiate this class inside the method.
Java local inner class example
Output:
30
Sign up here with your email
ConversionConversion EmoticonEmoticon