Responsive
HDFC Bank Interview Questions and Answers
Q1. Explain about OOPS and why java doesn't support multi-level inheritance
OOPS is a programming paradigm based on objects and classes. Java doesn't support multi-level inheritance to avoid ambiguity and complexity.
OOPS stands for Object-Oriented Programming System, where programs are organized around objects rather than actions.
Java supports single inheritance, where a class can only inherit from one superclass to avoid the diamond problem.
Multi-level inheritance in Java can lead to ambiguity and complexity, as a subclass can inherit properties fro...read more
Q2. Explain how DB consistency in multi-threading
DB consistency in multi-threading ensures that data remains accurate and up-to-date across multiple threads.
Use transactions to ensure atomicity and isolation of database operations.
Implement proper locking mechanisms to prevent data corruption in concurrent access.
Consider using optimistic concurrency control techniques to handle conflicts.
Use database triggers or constraints to enforce data integrity rules.
Regularly monitor and optimize database performance to prevent bottl...read more
Q3. Explain about Spring boot controllers and SQL Comands
Spring Boot controllers handle incoming HTTP requests and SQL commands are used to interact with databases.
Spring Boot controllers are classes annotated with @RestController that handle incoming HTTP requests
SQL commands are used to interact with databases to perform operations like insert, update, delete, and select
Controllers in Spring Boot can use SQL commands to fetch data from a database and return it as a response to the client
Q4. Explain about ACID and multi-threading
ACID is a set of properties that guarantee reliable database transactions. Multi-threading involves multiple threads executing code concurrently.
ACID stands for Atomicity, Consistency, Isolation, Durability
Atomicity ensures that all operations in a transaction are completed successfully or none at all
Consistency ensures that the database remains in a valid state before and after the transaction
Isolation ensures that transactions are executed independently without interference...read more
Q5. DML vs DDL in database
DML is used to manipulate data in a database, while DDL is used to define the structure of the database.
DML stands for Data Manipulation Language and is used for operations like INSERT, UPDATE, DELETE.
DDL stands for Data Definition Language and is used for operations like CREATE, ALTER, DROP.
DML is used to modify existing data in a database, while DDL is used to define the structure of the database.
Examples of DML statements: INSERT INTO table_name VALUES (value1, value2); UP...read more
Q6. Explain about Threads
Threads are lightweight processes within a program that can run concurrently, allowing for multitasking and improved performance.
Threads share the same memory space within a process
Threads can communicate with each other through shared memory or message passing
Threads can be used for parallel processing, handling multiple tasks simultaneously
Examples: Java threads, POSIX threads (pthread)
Interview Process at HDFC Bank
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month