Question
What will be the output of the following Java snippet? class A { public void display() { System.out.println("Class A"); }} class B extends A { public void display() { System.out.println("Class B"); }} public class Test { public static void main(String[] args) { A obj = new B(); obj.display(); }}
More Data Structure Questions
- Which heap property is correct?
- Which of the following data structures can be efficiently implemented using a linked list?
- Given a singly linked list with 'n' nodes, what is the time complexity to delete the last node?
- Which of the following is a common application of stacks in code flow for expression evaluation?
- Which encryption technique is used in Transport Layer Security (TLS) to securely establish a session key?
- What is the worst-case time complexity of the Bubble Sort algorithm?
- In a data warehouse, which of the following best describes the concept of "data granularity"?
- What is the time complexity of the following pseudocode? for i = 1 to n: for j = 1 to i: for k = 1 to j: print(i, j, k)
- Suffix Trees are useful for:
- In a hash table, what is a 'collision'?
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)