Menu
Question Index
...

What will be the output of the following program?

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("Samsung Mobile DUOS S7562");
                        }
                    }
                }
            }
        }
    }
}


Samsung Mobile DUOS S7562
Some other output
Output can not be determined
Compilation Error or Runtime Error

Doubts

Problems

Topic: Advanced Java Programming Concepts

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App