i
Publicis Sapient
Filter interviews by
It was online interview with video
String buffer is synchronized and thread-safe, while string builder is not synchronized and faster.
String buffer is synchronized, making it thread-safe for use in multi-threaded environments.
String builder is not synchronized, making it faster but not thread-safe.
String builder is preferred for single-threaded operations due to its faster performance.
String buffer is used when thread safety is required, even though it
HashMap is a data structure in Java that stores key-value pairs and allows for fast retrieval of values based on keys.
HashMap is part of the Java Collections framework.
It uses hashing to store and retrieve elements quickly.
Each key in a HashMap must be unique.
HashMap allows for null keys and values.
Example: HashMap
Top trending discussions
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There were 2 interview rounds.
Find the maximum sum of a contiguous subarray within an array of integers.
Use Kadane's algorithm to find the maximum subarray sum efficiently.
Initialize two variables - maxEndingHere and maxSoFar.
Iterate through the array and update the variables accordingly.
Example: Input [1, -2, 3, 4, -1, 2, 1, -5, 4], Output: 10 (subarray [3, 4, -1, 2, 1])
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 to define the factory method
Create concrete classes that implement the interface or extend the abstract class
Factory class should have a method that returns an object of the interface type based on in
I applied via Company Website and was interviewed in Nov 2024. There were 2 interview rounds.
Braindraning is good or bad in india
Percentage si profit interest hcf lcm
posted on 2 Jan 2025
Good and easy, guesstimate and puzzles
Add very long numbers integers.
Design a central logging system for efficient monitoring and troubleshooting.
Use a centralized server to collect logs from all systems
Implement log aggregation tools like ELK stack or Splunk
Set up alerts for critical errors or anomalies
Ensure secure access controls for log data
Consider scalability and storage requirements
Ratelimiting APIs is a crucial aspect of ensuring system stability and preventing abuse.
Implement rate limiting to restrict the number of API calls a user can make within a specific time frame.
Use tokens or counters to track and enforce rate limits.
Consider using a distributed cache or database to store rate limit data for scalability.
Monitor and adjust rate limits based on usage patterns and system performance.
Provide...
I applied via campus placement at Manav Rachana International University, Faridabad and was interviewed in Apr 2023. There were 3 interview rounds.
It was actually a mix of aptitude and technical. 1st round included aptitude, English, essay writing and coding questions.
posted on 7 Jan 2023
Medium level coding question on leetcode and codechef are good to prepare to clear the test.
posted on 4 Jul 2024
I applied via Walk-in and was interviewed before Jul 2023. There were 3 interview rounds.
No of chars occurrences in a string
A framework is a set of guidelines, libraries, and tools that help in developing and executing automated tests efficiently.
Framework provides a structure for organizing test scripts, data, and reports.
It promotes reusability, maintainability, and scalability of test automation code.
Types of frameworks include data-driven, keyword-driven, hybrid, and behavior-driven development (BDD).
Examples of popular test automation ...
In Selenium, waits are used to pause the execution of the test script for a certain amount of time or until a certain condition is met.
Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit Wait: Waits for a certain condition to occur before proceeding further.
Fluent Wait: Waits for a condition with a specified frequency and timeout.
Thread.sleep(): Pauses the execution for a
Interview experience
based on 1 review
Rating in categories
Senior Associate
2.2k
salaries
| ₹10.9 L/yr - ₹37.5 L/yr |
Associate Technology L2
1.5k
salaries
| ₹5.1 L/yr - ₹20 L/yr |
Senior Associate Technology L1
1.2k
salaries
| ₹10.1 L/yr - ₹32 L/yr |
Senior Software Engineer
726
salaries
| ₹9.5 L/yr - ₹37 L/yr |
Senior Associate 2
613
salaries
| ₹14 L/yr - ₹41 L/yr |
Accenture
IBM
TCS
Infosys