i
Publicis
Sapient
Work with us
Filter interviews by
Interface and abstract class are both used for abstraction in object-oriented programming.
An interface is a collection of abstract methods that define a contract for a class to implement.
An abstract class is a class that cannot be instantiated and may contain abstract methods.
Interfaces are used to achieve multiple inheritance in Java.
Abstract classes can have non-abstract methods and instance variables.
An example...
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A shape class can have multiple subclasses like circle, square, etc. and all can be treated as shapes.
Example: A method can have different implementations in different classes but with t...
Inheritance in Java allows a class to inherit properties and methods from another class.
Inheritance is achieved using the 'extends' keyword.
The class that is being inherited from is called the superclass or parent class.
The class that inherits from the superclass is called the subclass or child class.
Subclasses can access the public and protected members of the superclass.
Inheritance promotes code reusability and ...
A program to check if a given number is a palindrome or not.
Convert the number to a string.
Reverse the string and compare it with the original string.
If they are equal, the number is a palindrome.
If not, the number is not a palindrome.
Deadlock is a situation where two or more processes are unable to proceed because they are waiting for each other to release resources.
Occurs in multi-threaded/multi-process environments
Can lead to system freeze or crash
Prevention techniques include resource ordering and timeouts
Example: Process A holds resource X and waits for resource Y, while Process B holds resource Y and waits for resource X
Network layers are a hierarchical way of organizing communication protocols.
Network layers provide a modular approach to networking.
Each layer has a specific function and communicates with adjacent layers.
The OSI model has 7 layers, while the TCP/IP model has 4 layers.
Examples of layers include the physical layer, data link layer, network layer, transport layer, and application layer.
Paging and Segmentation are memory management techniques used by operating systems.
Paging divides memory into fixed-size pages and stores them in physical memory.
Segmentation divides memory into logical segments and stores them in physical memory.
Paging allows for efficient use of physical memory and reduces fragmentation.
Segmentation allows for protection and sharing of memory between processes.
Examples of operat...
To reverse a string without using any looping and inbuilt functions, we can use recursion.
Create a function that takes a string as input.
If the length of the string is 0 or 1, return the string.
Otherwise, call the function recursively with the substring starting from the second character and concatenate the first character at the end.
Return the reversed string.
Example: reverseString('hello') returns 'olleh'.
The missing rupee is not actually missing. The calculation is misleading and does not account for the total amount paid.
The initial amount paid by each person was Rs.10, totaling Rs.30.
The owner gave them a discount of Rs.5, so they paid Rs.25 in total.
The broker took Rs.2, leaving them with Rs.23.
When the broker returned Rs.1 to each person, they each received Rs.1 back, totaling Rs.3.
So, the total amount paid by...
An array of objects can be used to implement a heterogeneous array.
Each element in the array can be an object that represents a different data type.
The objects can have different properties and methods based on their respective data types.
For example, an element can be an object representing a string with a 'value' property and a 'length' method.
I handle pressure by staying organized, prioritizing tasks, and taking breaks when needed.
I prioritize tasks based on deadlines and importance
I break down complex tasks into smaller, manageable steps
I communicate with team members and managers about workload and deadlines
I practice stress-relief techniques such as deep breathing or taking short walks
I appeared for an interview in Feb 2025, where I was asked the following questions.
It's an 1 hour round
I appeared for an interview in Sep 2023.
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot.
List is defined using square brackets [], tuple using parentheses ().
List is slower than tuple due to mutability.
Example: list_example = [1, 2, 3], tuple_example = (1, 2, 3)
Extended methods are a way to add new functionality to existing classes without modifying their source code.
Extended methods allow developers to add new methods to existing classes without inheritance.
They are commonly used in languages like C# and Kotlin.
Extended methods can improve code readability and maintainability by keeping related functionality together.
I applied via Campus Placement and was interviewed in Oct 2023. There were 2 interview rounds.
It was okay but easy comparatively.
Was easy but they select very few students.
I applied via Company Website and was interviewed in Mar 2023. There were 3 interview rounds.
I applied via Referral and was interviewed before Sep 2023. There were 2 interview rounds.
SOLID principles are a set of five design principles that help make software designs more understandable, flexible, and maintainable.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open/Closed Principle: Software entities should be open for extension but closed for modification.
L - Liskov Substitution Principle: Objects of a superclass should be replaceable with objects of its sub...
I can join within 2 weeks of receiving an offer.
I can start within 2 weeks of receiving an offer.
My current notice period is 2 weeks.
I am available to start immediately.
Good questions related to coding and performance tuning
What people are saying about Publicis Sapient
Some of the top questions asked at the Publicis Sapient Software Developer interview -
based on 9 interview experiences
Difficulty level
Duration
based on 39 reviews
Rating in categories
Senior Associate
2.2k
salaries
| ₹16.7 L/yr - ₹32 L/yr |
Associate Technology L2
1.6k
salaries
| ₹9.1 L/yr - ₹18 L/yr |
Senior Associate Technology L1
1.4k
salaries
| ₹16.3 L/yr - ₹30 L/yr |
Senior Software Engineer
901
salaries
| ₹17.7 L/yr - ₹32 L/yr |
Senior Associate 2
685
salaries
| ₹23.8 L/yr - ₹42 L/yr |
Genpact
DXC Technology
Sutherland Global Services
Optum Global Solutions