Question: What is the output of the following Java program? Explain. public class Duos { public static void main(String[] args) { new Duos().new D().new U().new O().new

What is the output of the following Java program? Explain. public class Duos {

public static void main(String[] args) {

new Duos().new D().new U().new O().new S().new II().Single(); }

class D {

class U {

class O {

class S {

class II {

public void Single() { System.out.println("CSE"); } } } } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!