Add office photos
Employer?
Claim Account for FREE

Responsive

2.8
based on 3 Reviews
Filter interviews by

HDFC Bank Interview Questions and Answers

Updated 10 Nov 2024

Q1. Explain about OOPS and why java doesn't support multi-level inheritance

Ans.

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

Add your answer

Q2. Explain how DB consistency in multi-threading

Ans.

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

Add your answer

Q3. Explain about Spring boot controllers and SQL Comands

Ans.

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

Add your answer

Q4. Explain about ACID and multi-threading

Ans.

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

Add your answer
Discover HDFC Bank interview dos and don'ts from real experiences

Q5. DML vs DDL in database

Ans.

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

Add your answer

Q6. Explain about Threads

Ans.

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)

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at HDFC Bank

based on 2 interviews
Interview experience
5.0
Excellent
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 710 Interview Questions
3.7
 • 395 Interview Questions
4.0
 • 371 Interview Questions
3.1
 • 170 Interview Questions
4.1
 • 148 Interview Questions
View all
Top Responsive Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter