Classes inside other class - Java Quiz Question


What will be the output of the following program?


A
HaiHelloWelcome
B
WelcomeHelloHai
C
HelloHaiWelcome
D
HaiWelcomeHello
E
Some other output
F
Compilation Error or Runtime Error