Question
What will be the output of the following code: class Parent { static void display() { System.out.println("Parent"); } } class Child extends Parent { static void display() { System.out.println("Child"); } } public class Test { public static void main(String[] args) { Parent p=new Child(); p.display(); } }
More Data Structure Questions
- In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
- Which cryptographic concept ensures that data integrity is preserved and cannot be altered during transmission?
- A hash table using separate chaining has 10 slots and stores 15 elements, uniformly distributed across the slots. What is the average number of comparisons...
- What is the result of evaluating the following prefix expression using a stack-based evaluation: * + 2 3 - 8 4
- Which of the following types of software testing ensures that previously working functionality is still operational after changes?
- In an adjacency matrix, checking whether edge (u,v) exists takes:
- Which of the following best differentiates between server-based virtualization and hypervisor-based virtualization?
- A DAG has edges A→C, B→C, C→D and B→D. Which is a valid topological ordering?
- What is the worst-case time complexity of the Bubble Sort algorithm?
- Solve the recurrence relation T(n) = 4T(n/2) + n^2 using the Master Theorem, and determine its asymptotic time complexity.
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)