DBS Bank
10+ Meesho Interview Questions and Answers
Q1. How to implement REST API (steps)?
To implement REST API, follow these steps:
Define the resources and their URIs
Define the HTTP methods (GET, POST, PUT, DELETE)
Implement the methods using a programming language
Test the API using tools like Postman
Document the API using tools like Swagger
Q2. what is n+1 issue in hybernate ?
n+1 issue in Hibernate refers to the problem of excessive database queries being executed due to lazy loading.
Occurs when a query fetches an entity and its associated entities one at a time instead of all at once
Can be solved by using eager loading or batch fetching
Can also be solved by using a join fetch query
Can lead to performance issues and slow down the application
Q3. write small code using @OneToMany and @ManyToOne ?
Example code using @OneToMany and @ManyToOne annotations
Create two entities, one with @OneToMany and the other with @ManyToOne annotation
Use mappedBy attribute in @OneToMany to specify the relationship
Use joinColumn attribute in @ManyToOne to specify the foreign key column
Example: User has many Posts, Post belongs to one User
Q4. Find second largest number using stream
Using stream, find the second largest number.
Sort the stream in descending order and return the second element.
Use the reduce() method to compare and find the second largest number.
Create a priority queue and add elements to it. Pop the second largest element from the queue.
Q5. Hibernate type of caches ?
Hibernate supports two types of caches: Level 1 (session) cache and Level 2 (SessionFactory) cache.
Level 1 cache is associated with the session object and is enabled by default.
Level 2 cache is shared across sessions and requires configuration.
Level 2 cache can be implemented using various providers like Ehcache, Infinispan, Hazelcast, etc.
Q6. Find output of java programs
Java programs output can be determined by running the code and observing the console or log files.
Compile the Java code using a compiler like javac
Run the compiled code using the Java Virtual Machine (JVM)
Observe the output in the console or log files
Output can be text, numbers, or other data types
Q7. Java 8 Features and uses
Java 8 introduced several new features including lambda expressions, streams, and functional interfaces.
Lambda expressions allow for functional programming and simplify code
Streams provide a way to process collections of data in a functional way
Functional interfaces allow for the use of lambda expressions
Default methods allow for adding methods to interfaces without breaking existing implementations
Date and time API improvements
Nashorn JavaScript engine integration
Q8. Transaction Management in springboot?
Spring Boot provides transaction management support through the use of @Transactional annotation.
Spring Boot uses the @Transactional annotation to manage transactions.
The @Transactional annotation can be applied to methods or classes.
Spring Boot supports both programmatic and declarative transaction management.
Programmatic transaction management involves using the TransactionTemplate class.
Declarative transaction management involves using the @Transactional annotation.
Spring ...read more
Q9. Streams and their applications
Streams are a sequence of data elements that can be processed in parallel or sequentially. They are used in various applications.
Streams are used for data processing, such as filtering, mapping, and reducing.
They are also used for I/O operations, such as reading and writing files or network sockets.
Streams can be parallelized to improve performance on multi-core systems.
Examples of stream-based APIs include Java 8 Streams, Node.js Streams, and Apache Kafka Streams.
Q10. Spring Boot features and uses
Spring Boot is a framework for building standalone, production-grade Spring-based applications.
Provides a simplified way to create Spring applications with minimal configuration
Includes an embedded Tomcat, Jetty or Undertow server for easy deployment
Supports auto-configuration, which automatically configures Spring based on dependencies
Offers a wide range of starter dependencies for common use cases
Enables easy integration with other Spring projects like Spring Data, Spring S...read more
Q11. Final assurance of achieving of Target
Final assurance of achieving target is through continuous monitoring, adjusting strategies, and team collaboration.
Regularly track progress towards the target
Analyze data to identify areas of improvement
Adjust strategies based on feedback and results
Collaborate with team members to ensure everyone is aligned and working towards the same goal
Q12. What is UAT testing
UAT testing is the process of testing a software application by the end-users to ensure its usability, functionality, and compatibility.
UAT stands for User Acceptance Testing
It is the final phase of testing before the software is released to the market
It is performed by the end-users to ensure that the software meets their requirements
It focuses on the usability, functionality, and compatibility of the software
It helps to identify any issues or bugs that were not caught durin...read more
Q13. Re-Assuarance of results
Reassuring the interviewer about the reliability of the results
Highlight the thoroughness of the process followed to obtain the results
Mention any quality control measures implemented to ensure accuracy
Provide examples of successful outcomes or positive feedback received
Discuss any certifications or accreditations that validate the results
Q14. What is selenium
Selenium is an open-source automation testing tool used for web application testing.
Selenium supports multiple programming languages like Java, Python, C#, etc.
It can automate web browsers like Chrome, Firefox, Safari, etc.
Selenium can perform various testing types like functional, regression, and load testing.
It can also interact with web elements like buttons, text fields, etc.
Selenium can be integrated with other tools like Jenkins, TestNG, etc. for continuous integration ...read more
More about working at DBS Bank
Interview Process at Meesho
Top Associate Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month