What is Nested and Inner classes in java | SoloLearn: Learn to code for FREE!

+1

What is Nested and Inner classes in java

11/15/2017 8:56:06 AM

Kurvesh Sathawane

3 Answers

New Answer

+9

An inner class is a class within another class: class outer { class inner {} }

+6

https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html

0

Kurvesh Sathawane You can read all about inner class with examples. Inner classes have some rules also please visit here: https://javagoal.com/nested-classes/