Home / Programming MCQs / JAVA MCQs / Question
R
Q. Output of following Java Program?
class Base { public void show() { System.out.println("Base::show() called"); } } class Derived extends Base { public void show() { System.out.println("Derived::show() called"); } } public class Main { public static void main(String[] args) { Base b = new Derived();; b.show(); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of the following will cause a semantic error, if you are trying to compare x to 5?
What is the output of this program?
Component which additionally provides a pop-up date picker control for its enclosedinput field.
Which statement is correct for private member in Java?
Which of these class is not a member class of java.io package?
_______ is passed to a method by use of call-by-reference.
What is the output of below code snippet?
When method is overridden , then by subclass object which class method is called _____.
Which of these class is used to make a thread?
Which of these is return type of getAddress method of DatagramPacket class?
Discusssion
Login to discuss.