Filter interviews by
Top trending discussions
I applied via Approached by Company and was interviewed in Mar 2024. There were 3 interview rounds.
Find repeat elements in an array of strings
Iterate through the array and store each element in a HashMap with its count
Check if the count of any element is greater than 1, then it is a repeat element
Return the repeat elements found in the array
Build a basic CRUD REST API endpoint
Create a REST API endpoint for each CRUD operation (Create, Read, Update, Delete)
Use HTTP methods like POST, GET, PUT, DELETE to perform CRUD operations
Implement data validation and error handling for each operation
Utilize a framework like Spring Boot or Express.js to simplify API development
To find the third highest salary in a SQL table, you can use the 'SELECT TOP 1' statement with 'ORDER BY salary DESC OFFSET 2 ROWS FETCH NEXT 1 ROWS ONLY'.
Use the 'SELECT TOP 1' statement to retrieve only one record
Order the records by salary in descending order using 'ORDER BY salary DESC'
Skip the first two highest salaries using 'OFFSET 2 ROWS'
Fetch the next record after skipping the first two using 'FETCH NEXT 1 ROW
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Sorting program to arrange strings in alphabetical order
Use Arrays.sort() method to sort the array of strings
Implement a custom Comparator to sort in a specific order
Consider using Collections.sort() for sorting ArrayList of strings
posted on 17 May 2024
posted on 26 May 2024
I applied via LinkedIn and was interviewed in Apr 2024. There was 1 interview round.
Explain the basics of Java in a simple and practical way, focusing on hands-on examples and real-world applications.
Start by explaining the basic syntax and structure of Java code
Use simple examples to demonstrate concepts like variables, loops, and functions
Show how Java is used in real-world applications, such as building websites or mobile apps
Memory management is the process of controlling and coordinating computer memory, assigning portions called blocks to various running programs.
Memory allocation - assigning memory blocks to programs as needed
Memory deallocation - releasing memory blocks when no longer needed
Memory fragmentation - the division of memory into small blocks leading to inefficient use
Memory leaks - when a program fails to release memory aft...
I applied via Company Website and was interviewed in Aug 2023. There were 3 interview rounds.
I applied via Company Website and was interviewed in Sep 2023. There were 2 interview rounds.
HashMap is a data structure in Java that stores key-value pairs and allows fast retrieval of values based on keys.
HashMap implements the Map interface in Java
It allows null keys and values
Keys in a HashMap must be unique
Example: HashMap<String, Integer> map = new HashMap<>()
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap uses the hashCode() method of keys to calc...
Throw is used to explicitly throw an exception in a method, while Throws is used to declare the exceptions that a method may throw.
Throw is used within a method to throw an exception explicitly.
Throws is used in the method signature to declare the exceptions that the method may throw.
Throw is followed by an instance of Throwable class, while Throws is followed by the exception class names separated by commas.
Example: t...
Arrays are fixed in size, while ArrayLists can dynamically resize. ArrayLists provide more flexibility and functionality.
Arrays have a fixed size, while ArrayLists can dynamically resize.
ArrayLists can easily add, remove, or modify elements, while arrays require manual shifting of elements.
Arrays use [] syntax for declaration and initialization, while ArrayLists use the ArrayList class from the Java Collections framewo
ArrayList is resizable array implementation, LinkedList is doubly linked list implementation, Vector is synchronized version of ArrayList.
ArrayList is faster for accessing elements, LinkedList is faster for adding/removing elements in middle.
ArrayList uses less memory than LinkedList due to contiguous memory allocation.
Vector is thread-safe but slower than ArrayList due to synchronization overhead.
Iterate through a hashmap using an iterator in Java
Create an iterator using the entrySet() method of the hashmap
Use a while loop to iterate through the hashmap entries
Access the key and value of each entry using the getKey() and getValue() methods
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
I m to get yourlife company to work.
It's like technical round & Hr round , way of language speaking.
I applied via Job Portal and was interviewed before Mar 2023. There were 3 interview rounds.
Aptitude test with Java MCQ questions
Basic programs in Java
based on 1 interview
Interview experience
Executive Accountant
31
salaries
| ₹1.8 L/yr - ₹3 L/yr |
Senior Accounts Executive
25
salaries
| ₹2.8 L/yr - ₹3.5 L/yr |
Team Lead
25
salaries
| ₹3.3 L/yr - ₹6 L/yr |
Business Analyst
15
salaries
| ₹1 L/yr - ₹5 L/yr |
Junior Developer
12
salaries
| ₹2 L/yr - ₹3 L/yr |
Teleperformance
Amazon
iEnergizer
Deloitte