Question
What is the output of the following code? class Parent { void show() { System.out.println("Parent"); } } class Child extends Parent { void show() { System.out.println("Child"); } } public class Test { public static void main(String[] args) { Parent p = new Child(); p.show(); } }
More IT Operating System Questions
- The _____________ deals with the coordination of the data transfer between end systems and hosts.
- Which of the following statements about the ALOHA protocol is correct?
- What does a star schema consist of?
- What is the final value of x after the following C++ code snippet executes? int x = 10; for (int i = 0; i < 3; ++i) { x += i; ...
- A network admin wants a firewall that automatically allows return traffic for an outbound connection without requiring a separate explicit inbound rule, wh...
- Three processes arrive as follows: P1 (arrival=0, burst=8), P2 (arrival=1, burst=4), P3 (arrival=2, burst=2). Using Shortest Remaining Time First (SRTF, pr...
- The Fibonacci sequence (F(n) = F(n-1) + F(n-2)) is a classic example demonstrating the benefits of Dynamic Programming. Without DP, a naive recursive solut...
- Consider the page reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 with exactly 3 page frames, all initially empty. Using the FIFO page replacement algo...
- In a database system, a dense index is one in which:
- Consider the following statement regarding Kelvin Double Bridge. Statement (1): It is used for measuring resistance in the range of few ohms to several me...
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)