Xebia
Bandhan Bank Interview Questions and Answers
Q1. What are Java 8 new features? Which of these have you used?
Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions: Enable functional programming in Java by expressing instances of single-method interfaces (functional interfaces) concisely.
Functional interfaces: Interfaces with a single abstract method, such as java.util.function.Function or java.util.function.Predicate.
Streams: Allow for processing sequences of elements in a functional style, support...read more
Q2. Have you worked on Kafka? How many partitions did your code have?
Yes, I have worked on Kafka. My code had 10 partitions.
Yes, I have experience working with Kafka and have implemented code with multiple partitions.
In one of my projects, I used Kafka with 10 partitions to distribute the workload efficiently.
Having multiple partitions in Kafka helped in achieving high throughput and scalability for real-time data processing.
Q3. Are you aware of Eviction Policy in Cache?
Eviction policy in cache determines which items should be removed when the cache reaches its maximum capacity.
Eviction policy helps in managing the cache size and ensuring that the most relevant data is retained.
Common eviction policies include LRU (Least Recently Used), LFU (Least Frequently Used), and FIFO (First In, First Out).
For example, in LRU policy, the least recently accessed items are removed from the cache when it reaches its limit.
Q4. Which cache have you used? Why is Cache needed
I have used Redis and Memcached. Cache is needed to improve performance by storing frequently accessed data in memory.
Used Redis for key-value storage and Memcached for object caching
Cache is needed to reduce database load and improve response time
Helps in storing frequently accessed data in memory for quick retrieval
Q5. What are profiles in spring boot?
Profiles in Spring Boot allow you to define different configurations for different environments.
Profiles are used to customize application behavior based on the environment it is running in.
You can define profiles in application.properties or application.yml using 'spring.profiles.active' property.
Common profiles include 'dev', 'test', and 'prod' for development, testing, and production environments.
You can have different configuration values for each profile, such as databas...read more
Q6. LRU in cache? WAP to demonstrate LRU in Cache.
LRU (Least Recently Used) is a cache eviction policy where the least recently accessed items are removed from the cache when it reaches its capacity.
LRU cache stores key-value pairs with a maximum capacity. When the cache is full, the least recently used item is evicted to make space for new items.
Each time a key is accessed in the cache, it is moved to the front of the cache to indicate it was the most recently used item.
If a new key needs to be added to a full cache, the le...read more
Q7. Implement Factory Pattern.
Factory pattern is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.
Create an interface or abstract class for the factory with a method to create objects
Create concrete classes that implement the factory interface and return specific types of objects
Client code uses the factory to create objects without knowing the specific class being instantiated
More about working at Xebia
Interview Process at Bandhan Bank
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month