What will be output of running Class2.java ?
Click on button below to answer the quiz and see correct answer
© 2015 – 2016, https:. All rights reserved. On republishing this post, you must provide link to original post
0 of 1 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 1 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
We can call main() of a class from another class using Classname.main(). Hence, both the print statements will be executed.
We can call main() of a class from another class using Classname.main(). Hence, both the print statements will be executed.
© 2015 – 2016, https:. All rights reserved. On republishing this post, you must provide link to original post
#
Answer is wrong it is
1
4
2
4
3
4
#
I think the result is wrong.It has to 1 2 1 3 1 4
#