What will be output of running Class2.java ?
0 of 1 questions completed
Click on button below to answer the quiz and see correct answer
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
Time has elapsed
You have reached 0 of 0 points, (0)
Select correct answer from options belowCorrect
We can call main() of a class from another class using Classname.main(). Hence, both the print statements will be executed.Incorrect
We can call main() of a class from another class using Classname.main(). Hence, both the print statements will be executed.
© 2015 – 2016, www.topjavatutorial.com. All rights reserved. On republishing this post, you must provide link to original post