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
- Which cloud computing service model provides customers with virtualized computing infrastructure — such as virtual machines, storage, and networking — whil...
- Which paging-related concept refers to loading a page into main memory only when it is actually referenced during program execution?
- Which of these AI approaches involves agents learning by interacting with their environment?
- Which of the following is a client side scripting language?
- In which topology does data travel in a circular manner from one node to another?
- Which of the following statements about the #include directive in C/C++ is correct?
- Which of the following is used to implement recursion?
- In a 4-bit DAC, reference voltage is 5 Volts , then analog voltage corresponding to binary data is 1001 is _______
- 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...
- In a Ternary Search algorithm, the array is divided into three parts. Complete the calculation for mid1 and mid2. def ternary_search(arr, target): ...
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)