Filter interviews by
Utilize multithreading to enhance performance and responsiveness in OTP authentication systems.
Use separate threads for generating and sending OTPs to avoid blocking the main thread.
Implement a thread pool to manage multiple OTP requests efficiently.
Utilize asynchronous programming to handle user verification while sending OTPs.
Example: Use a thread to send an OTP via SMS while another thread waits for user input.
...
The equals method and hashCode must maintain a consistent contract for object equality in Java.
If two objects are equal according to equals(), their hashCode() must return the same integer.
If two objects are not equal according to equals(), their hashCode() can return the same or different integers.
Example: If 'a.equals(b)' is true, then 'a.hashCode()' must equal 'b.hashCode()'.
Failing to adhere to this contract c...
For a warehouse application, collections like lists, maps, and sets are essential for efficient restocking operations.
Use Lists for ordered inventory items, e.g., ArrayList in Java for easy access and iteration.
Utilize Maps for quick lookups, e.g., HashMap to associate item IDs with their quantities.
Implement Sets to manage unique items, e.g., HashSet to avoid duplicates during restocking.
Query to find the student with the highest score in a specific subject from three related tables.
Use SQL JOIN to combine Student, Subject, and Scores tables.
Filter results using a WHERE clause to specify the subject.
Use ORDER BY to sort scores in descending order.
Limit the result to 1 to get the topper.
What people are saying about Citicorp
Use two-pointer approach to move all zeros to the beginning of the array.
Initialize two pointers, one at the beginning and one at the end of the array.
Swap elements at the two pointers if the element at the beginning pointer is zero.
Move the pointers towards each other until they meet.
HashMap is faster than TreeMap wrto performance due to its constant time complexity for most operations.
HashMap has O(1) time complexity for most operations while TreeMap has O(log n) time complexity.
HashMap is implemented using an array of buckets while TreeMap is implemented using a Red-Black Tree.
HashMap is preferred for frequent read operations while TreeMap is preferred for frequent write operations.
HashMap i...
Yes, multiple exceptions can be caught in a single catch block separated by commas.
Multiple exceptions can be caught in a single catch block separated by commas.
This can be useful when handling different types of exceptions in a similar way.
For example: catch (IOException | SQLException ex) { // handle exception }
Yes, it is possible to write a try catch block inside a catch block.
This is called nested try-catch block.
It is useful when we want to handle different types of exceptions in different ways.
Example: try { //code } catch (ExceptionType1 e1) { try { //code } catch (ExceptionType2 e2) { //code } } }
It is important to avoid excessive nesting as it can make the code difficult to read and maintain.
Spring Boot provides a robust exception handling mechanism using @ControllerAdvice and @ExceptionHandler annotations.
Use @ControllerAdvice to handle exceptions globally across all controllers.
Define custom exception classes for specific error scenarios, e.g., ResourceNotFoundException.
Use @ExceptionHandler to specify methods that handle specific exceptions.
Return a ResponseEntity with appropriate HTTP status codes...
REST API methods are used to interact with web services using HTTP requests.
GET method is used to retrieve data from the server
POST method is used to create new data on the server
PUT method is used to update existing data on the server
DELETE method is used to delete data from the server
REST APIs use HTTP status codes to indicate the success or failure of a request
I appeared for an interview in Mar 2025, where I was asked the following questions.
The equals method and hashCode must maintain a consistent contract for object equality in Java.
If two objects are equal according to equals(), their hashCode() must return the same integer.
If two objects are not equal according to equals(), their hashCode() can return the same or different integers.
Example: If 'a.equals(b)' is true, then 'a.hashCode()' must equal 'b.hashCode()'.
Failing to adhere to this contract can le...
For a warehouse application, collections like lists, maps, and sets are essential for efficient restocking operations.
Use Lists for ordered inventory items, e.g., ArrayList in Java for easy access and iteration.
Utilize Maps for quick lookups, e.g., HashMap to associate item IDs with their quantities.
Implement Sets to manage unique items, e.g., HashSet to avoid duplicates during restocking.
Query to find the student with the highest score in a specific subject from three related tables.
Use SQL JOIN to combine Student, Subject, and Scores tables.
Filter results using a WHERE clause to specify the subject.
Use ORDER BY to sort scores in descending order.
Limit the result to 1 to get the topper.
Utilize multithreading to enhance performance and responsiveness in OTP authentication systems.
Use separate threads for generating and sending OTPs to avoid blocking the main thread.
Implement a thread pool to manage multiple OTP requests efficiently.
Utilize asynchronous programming to handle user verification while sending OTPs.
Example: Use a thread to send an OTP via SMS while another thread waits for user input.
Ensur...
I applied via Approached by Company
Mostly they asked questions on String or basic coding questions
Use two-pointer approach to move all zeros to the beginning of the array.
Initialize two pointers, one at the beginning and one at the end of the array.
Swap elements at the two pointers if the element at the beginning pointer is zero.
Move the pointers towards each other until they meet.
Data structure and Algorithm
I applied via Naukri.com and was interviewed in Jul 2022. There were 4 interview rounds.
HashMap is faster than TreeMap wrto performance due to its constant time complexity for most operations.
HashMap has O(1) time complexity for most operations while TreeMap has O(log n) time complexity.
HashMap is implemented using an array of buckets while TreeMap is implemented using a Red-Black Tree.
HashMap is preferred for frequent read operations while TreeMap is preferred for frequent write operations.
HashMap is uno...
Yes, it is possible to write a try catch block inside a catch block.
This is called nested try-catch block.
It is useful when we want to handle different types of exceptions in different ways.
Example: try { //code } catch (ExceptionType1 e1) { try { //code } catch (ExceptionType2 e2) { //code } } }
It is important to avoid excessive nesting as it can make the code difficult to read and maintain.
Yes, multiple exceptions can be caught in a single catch block separated by commas.
Multiple exceptions can be caught in a single catch block separated by commas.
This can be useful when handling different types of exceptions in a similar way.
For example: catch (IOException | SQLException ex) { // handle exception }
I appeared for an interview before May 2024, where I was asked the following questions.
Design a social media app with user profiles, posts, interactions, and privacy features.
User Profiles: Allow users to create profiles with photos, bios, and interests.
Posts: Enable users to share text, images, and videos, similar to platforms like Instagram or Twitter.
Interactions: Implement likes, comments, and shares to foster engagement.
News Feed: Create an algorithm to display posts based on user preferences and in...
I applied via Recruitment Consulltant and was interviewed in Feb 2022. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Mar 2023. There was 1 interview round.
I applied via Naukri.com and was interviewed in Nov 2021. There was 1 interview round.
Spring Boot provides a robust exception handling mechanism using @ControllerAdvice and @ExceptionHandler annotations.
Use @ControllerAdvice to handle exceptions globally across all controllers.
Define custom exception classes for specific error scenarios, e.g., ResourceNotFoundException.
Use @ExceptionHandler to specify methods that handle specific exceptions.
Return a ResponseEntity with appropriate HTTP status codes and ...
REST API methods are used to interact with web services using HTTP requests.
GET method is used to retrieve data from the server
POST method is used to create new data on the server
PUT method is used to update existing data on the server
DELETE method is used to delete data from the server
REST APIs use HTTP status codes to indicate the success or failure of a request
based on 9 interview experiences
Difficulty level
Duration
based on 39 reviews
Rating in categories
Assistant Vice President
5.2k
salaries
| ₹28 L/yr - ₹45 L/yr |
Assistant Manager
3.2k
salaries
| ₹10.6 L/yr - ₹19 L/yr |
Officer
3k
salaries
| ₹17.6 L/yr - ₹31.5 L/yr |
Vice President
2.7k
salaries
| ₹39.3 L/yr - ₹65 L/yr |
Manager
2.3k
salaries
| ₹17 L/yr - ₹30 L/yr |
Wells Fargo
JPMorgan Chase & Co.
HSBC Group
Cholamandalam Investment & Finance