The below program demonstrates the different way of declaring Strings in Java. The below program creates different objects of String(s1,s2,s3,s4) by using different ways. Run It Now!
The below example demonstrates how to create an inner class in java. In the below example Class Enumeration is an inner class to class Data. Run It Now!