i
Publicis Sapient
Filter interviews by
I was interviewed in Sep 2024.
There were MCQ questions consists of different sections like Design Pattern,Java 8
I was interviewed in Aug 2024.
Complete Coding Test to write a complete application code.
Microservice design patterns are architectural patterns used to design and implement microservices.
Service discovery and registration
Circuit breaker pattern
API gateway pattern
Event sourcing pattern
Saga pattern
What people are saying about Publicis Sapient
posted on 27 Sep 2024
I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.
A Spring Boot REST controller is used to handle incoming HTTP requests and return appropriate responses.
Create a new Java class annotated with @RestController
Define request mapping annotations like @GetMapping, @PostMapping, @PutMapping, @DeleteMapping
Inject dependencies using @Autowired annotation
Return response using ResponseEntity or directly as method return value
Code to reverse a comma separated string in Java
Split the input string by comma to get an array of strings
Iterate through the array in reverse order and append each element to a new string with a comma
Return the reversed comma separated string
JVM memory consists of Young Generation, Old Generation, and Permanent Generation.
Young Generation: where new objects are allocated and aged before moving to Old Generation.
Old Generation: where long-lived objects are stored.
Permanent Generation: where metadata such as class definitions and method information are stored.
Interface is a contract with no implementation, while abstract class can have some implementation.
Interface cannot have any method implementation, while abstract class can have some method implementations.
A class can implement multiple interfaces, but can only extend one abstract class.
Interfaces are used to achieve multiple inheritance in Java.
Abstract classes can have constructors, while interfaces cannot.
Example: In...
Immutable classes in Java are classes whose objects cannot be modified once they are created.
Make the class final to prevent inheritance
Make all fields private and final
Do not provide setter methods for fields
Ensure that any mutable objects within the class are also immutable
Composition is a strong relationship where the child object cannot exist independently of the parent object, while aggregation is a weak relationship where the child object can exist independently.
Composition is a 'has-a' relationship, where the child object is a part of the parent object.
Aggregation is a 'has-a' relationship, where the child object is not a part of the parent object.
In composition, the child object is...
Comparable is an interface used for natural ordering of objects, while Comparator is an interface used for custom ordering of objects.
Comparable interface is implemented by the class whose objects are to be compared, while Comparator interface is implemented by a separate class.
Comparable interface has a single method compareTo() for comparing objects, while Comparator interface has a single method compare() for custom...
HashMap is not thread-safe while ConcurrentHashMap is thread-safe.
HashMap is not thread-safe and can lead to ConcurrentModificationException if modified during iteration.
ConcurrentHashMap allows concurrent read and write operations without the need for external synchronization.
ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments concurren...
Collections store data while streams process data in a functional way.
Collections are used to store and manage groups of objects, while streams are used to process collections of objects.
Collections are mutable, meaning you can add, remove, or modify elements, while streams are immutable and do not change the original data.
Streams use functional programming concepts like map, filter, and reduce to process data efficien...
Use @Primary to specify a primary bean when multiple beans of the same type are present. Use @Qualifier to specify a specific bean when multiple beans of the same type are present.
Use @Primary to indicate the primary bean to be used when multiple beans of the same type are present in the Spring application context.
Use @Qualifier along with @Autowired to specify a specific bean to be injected when multiple beans of the ...
I applied via Naukri.com and was interviewed in Nov 2023. There were 2 interview rounds.
JDBC is a low-level API for connecting to databases in Java, while Hibernate is a high-level ORM framework that simplifies database interactions.
JDBC requires writing SQL queries manually, while Hibernate provides an object-oriented approach to database operations.
Hibernate handles mapping Java objects to database tables, while JDBC requires manual mapping.
Hibernate provides caching mechanisms for improved performance,...
I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.
Java8 stream api related problems to code in notepad
I was interviewed in Feb 2024.
String is immutable in Java to ensure security, thread safety, and optimization.
Immutable strings prevent accidental changes to sensitive data like passwords.
Immutable strings allow for safe sharing of data across multiple threads.
Immutable strings enable string pooling for memory optimization.
posted on 24 Jun 2024
I applied via Recruitment Consulltant and was interviewed in May 2024. There was 1 interview round.
1. Basic Java
2. Code Snippet
3. Microservices
I applied via Naukri.com and was interviewed before May 2023. There was 1 interview round.
based on 1 review
Rating in categories
4-10 Yrs
₹ 5-30 LPA
7-12 Yrs
₹ 20-30 LPA
Senior Associate
2.3k
salaries
| ₹10.5 L/yr - ₹37.8 L/yr |
Associate Technology L2
1.5k
salaries
| ₹6.5 L/yr - ₹20 L/yr |
Senior Associate Technology L1
1.2k
salaries
| ₹10.3 L/yr - ₹32 L/yr |
Senior Software Engineer
722
salaries
| ₹9.2 L/yr - ₹36 L/yr |
Senior Associate 2
599
salaries
| ₹14.1 L/yr - ₹41 L/yr |
Accenture
IBM
TCS
Infosys