Question
Examine the following Java-like code: ```java class Parent { String name = "Parent"; public void display() { System.out.println(name); } } class Child extends Parent { String name = "Child"; // No display method override } public class Main { public static void main(String[] args) { Parent p = new Child(); p.display(); } } ``` What will be the output?
More IT DBMS Questions
- Which join should be used when you want to list all customers and any orders they may have placed, including customers who haven’t placed any orders?
- Transaction T1 updates a row but has not yet committed. Transaction T2 reads this same row's uncommitted new value. T1 then rolls back, meaning T2 has read...
- A transaction either executes all of its operations completely, or none of its operations take effect at all, leaving the database unchanged if any part of...
- You have a Python list of fruits and want to extract a specific sub-list using slicing. Complete the missing part of the code to obtain the sub-list `['b...
- Which of the following best describes the control flow when a method in a subclass overrides a method in its superclass, and an object of the subclass is r...
- A relation R(A, B, C, D, E) has the functional dependencies AB→C, C→D, D→E, and E→A. Assuming AB is the only candidate key of R, which normal form does R s...
- Which SQL constraint ensures that a column cannot have NULL values?
- Which type of SQL JOIN returns all rows from both tables involved, placing NULLs in columns where there is no matching row on the other side?
- The command to test reachability of a host in Linux is:
- A file of 10,000 fixed-length records of 128 bytes each is stored sorted on its key in disk blocks of 1024 bytes (unspanned). How many block accesses are n...
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)