Home /
Expert Answers /
Computer Science /
looking-for-a-step-by-step-solution-and-why-thank-you-java-nbsp-nbsp-what-is-the-output-pa939
(Solved): Looking for a step-by-step solution and why, thank you. (Java)
What is the output ...
Looking for a step-by-step solution and why, thank you. (Java)
What is the output of the code? class \( A \) \{ public void fun() \{ System.out.print("1"); \} \} class \( B \) extends \( A \) \{ public void fun() \{ System.out.print("2"); \} public void test() \{ super.fun(); fun(); super.fun(); \} \} //code in the main of another class \( B \) one \( = \) new \( B() \); one.test();