i
TO THE
NEW
Filter interviews by
Understanding string pool in Java helps manage memory efficiently and optimize string operations.
String literals are stored in the string pool, which is a special memory area.
When a string is created using a literal, it checks the pool first to see if it exists.
Example: String s1 = "Hello"; String s2 = "Hello"; // s1 and s2 point to the same object in the pool.
Using 'new' keyword creates a new string object in hea...
This code snippet counts the frequency of each character in a string using a hash map (dictionary in Python).
Use a hash map (dictionary) to store character counts.
Iterate through each character in the string.
For each character, increment its count in the hash map.
Example: For the string 'hello', the output will be {'h': 1, 'e': 1, 'l': 2, 'o': 1}.
Detects if a linked list has a cycle using Floyd's Tortoise and Hare algorithm.
Use two pointers: slow and fast. Slow moves one step, fast moves two steps.
If there's a loop, slow and fast will eventually meet.
If fast reaches the end (null), the list has no loop.
Example: For a list 1 -> 2 -> 3 -> 4 -> 2 (cycle), slow and fast meet at 2.
Exception handling is crucial for managing errors in software applications, ensuring stability and user experience.
Use try-catch blocks to handle exceptions gracefully. Example: try { riskyCode(); } catch (Exception e) { handleError(e); }
Always log exceptions for debugging purposes. Example: logger.error('Error occurred', e);
Avoid using generic exceptions; catch specific exceptions to handle different error types ...
Using Java 8 Stream, find and print the name of the student with the second highest marks.
Sort the students based on marks in descending order
Skip the first student (highest marks) and find the second student
Print the name of the second student
Hash map is a data structure that stores key-value pairs and allows for efficient retrieval of values based on keys.
Hash map uses a hash function to map keys to indices in an array.
Collision handling is important in hash maps to deal with multiple keys hashing to the same index.
Common operations on hash maps include insertion, deletion, and lookup.
Example: HashMap<String, Integer> map = new HashMap<>()...
Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: creating new classes based on existing classes
Polymorphism: the ability for objects to be treated as instances of their parent class
Return the kth element from the end of a linked list
Traverse the linked list to find the length of the list
Calculate the position of the kth element from the beginning
Traverse the list again to find the kth element from the end
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their containing scope during compilation.
Hoisting applies to variable declarations (using var) and function declarations.
Example: console.log(x); var x = 5; // Outputs 'undefined' due to hoisting.
Function declarations are fully hoisted: greet(); function greet() { console.log('Hello'); } // Works fine.
Let and cons...
Iterate and insert values into a hashSet in Java
Create a HashSet object
Use a for loop to iterate over the elements to be inserted
Call the add() method on the HashSet object to insert each element
I appeared for an interview in Sep 2024.
This code snippet counts the frequency of each character in a string using a hash map (dictionary in Python).
Use a hash map (dictionary) to store character counts.
Iterate through each character in the string.
For each character, increment its count in the hash map.
Example: For the string 'hello', the output will be {'h': 1, 'e': 1, 'l': 2, 'o': 1}.
Understanding string pool in Java helps manage memory efficiently and optimize string operations.
String literals are stored in the string pool, which is a special memory area.
When a string is created using a literal, it checks the pool first to see if it exists.
Example: String s1 = "Hello"; String s2 = "Hello"; // s1 and s2 point to the same object in the pool.
Using 'new' keyword creates a new string object in heap mem...
Spring Boot simplifies Spring application development, while microservices enhance scalability and maintainability.
Spring Boot offers auto-configuration, reducing boilerplate code. Example: Setting up a REST API with minimal configuration.
Microservices architecture allows independent deployment of services, enhancing scalability. Example: A user service and an order service can be deployed separately.
Spring provides a ...
Hibernate mapping uses annotations to define entity relationships and transient fields that should not be persisted in the database.
@Entity: Marks a class as a Hibernate entity, representing a table in the database.
@Table: Specifies the table name if it differs from the entity name, e.g., @Table(name = "users").
@Id: Defines the primary key of the entity, e.g., @Id @GeneratedValue(strategy = GenerationType.IDENTITY) for...
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Return the kth element from the end of a linked list
Traverse the linked list to find the length of the list
Calculate the position of the kth element from the beginning
Traverse the list again to find the kth element from the end
Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: creating new classes based on existing classes
Polymorphism: the ability for objects to be treated as instances of their parent class
I applied via Naukri.com and was interviewed before Jan 2019. There were 4 interview rounds.
I appeared for an interview before Jan 2024.
Using Java 8 Stream, find and print the name of the student with the second highest marks.
Sort the students based on marks in descending order
Skip the first student (highest marks) and find the second student
Print the name of the second student
I applied via Company Website and was interviewed in Dec 2022. There were 4 interview rounds.
Iterate and insert values into a hashSet in Java
Create a HashSet object
Use a for loop to iterate over the elements to be inserted
Call the add() method on the HashSet object to insert each element
I applied via Naukri.com and was interviewed in Apr 2023. There were 3 interview rounds.
I applied via Approached by Company and was interviewed before Jan 2024. There was 1 interview round.
Convert a number to Roman numerals up to any number, including 1000.
I applied via Approached by Company and was interviewed in Sep 2022. There were 4 interview rounds.
Collection, multithreading, JVM, Chess LLD, Design pattern
JVM architecture enables Java applications to run on any platform through bytecode interpretation and Just-In-Time compilation.
JVM consists of Class Loader, Execution Engine, and Garbage Collector.
Class Loader loads .class files into memory and verifies them.
Execution Engine includes Interpreter and JIT Compiler for executing bytecode.
Garbage Collector automatically manages memory by reclaiming unused objects.
JVM provi...
I applied via LinkedIn and was interviewed before Feb 2022. There were 4 interview rounds.
Python intermediate to advanced
Django basics
SQL basics
I worked at XYZ Company as a Senior Software Engineer.
Developed and maintained software applications
Collaborated with cross-functional teams to gather requirements
Implemented new features and enhancements
Performed code reviews and provided technical guidance
Resolved bugs and issues reported by users
Optimized application performance and scalability
Top trending discussions
Some of the top questions asked at the TO THE NEW Senior Software Engineer interview -
The duration of TO THE NEW Senior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 15 interview experiences
Difficulty level
Duration
based on 72 reviews
Rating in categories
Senior Software Engineer
683
salaries
| ₹12.9 L/yr - ₹24 L/yr |
Software Engineer
592
salaries
| ₹4.7 L/yr - ₹11.5 L/yr |
Associate Technical Leader
240
salaries
| ₹22 L/yr - ₹36 L/yr |
Devops Engineer
185
salaries
| ₹8 L/yr - ₹14 L/yr |
Senior Quality Engineer
171
salaries
| ₹11.4 L/yr - ₹21.1 L/yr |
ITC Infotech
CMS IT Services
KocharTech
Xoriant