i
Blackrock
Filter interviews by
I applied via Company Website and was interviewed in Mar 2024. There were 3 interview rounds.
Optimal solution for sorting an array of strings using built-in sorting algorithm in Java.
Use Arrays.sort() method to sort the array of strings in Java.
Ensure to import the Arrays class before using the sort() method.
Example: String[] arr = {"banana", "apple", "orange"}; Arrays.sort(arr);
I applied via Job Portal and was interviewed in Mar 2024. There was 1 interview round.
Use Spring Data JPA to connect Spring Boot project with database.
Add database configuration in application.properties or application.yml file
Create entity classes annotated with @Entity and @Table
Create repository interfaces extending JpaRepository
Use @Autowired annotation to inject repository in services or controllers
I applied via Naukri.com and was interviewed in Jan 2024. There were 2 interview rounds.
The questions are related to Java programming and do not involve the medical field or puzzles.
The static keyword is used to declare a variable or method that belongs to the class itself, rather than an instance of the class.
The final keyword is used to declare a constant value or to prevent a variable, method, or class from being modified or extended.
Different ways of creating threads in Java include extending the Thre...
API gateway serves as a central entry point for all client requests, providing various functionalities beyond authentication.
API gateway acts as a reverse proxy, routing requests to appropriate microservices.
It can handle request/response transformation, protocol translation, and payload encryption/decryption.
API gateway can implement rate limiting, throttling, and caching to improve performance.
It enables service disc...
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
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
Sort list of employees by employee number using streams and comparator.
Use Stream API to convert list to stream
Use Comparator to compare employee numbers
Use sorted() method to sort the stream based on comparator
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
I applied via Naukri.com and was interviewed in Oct 2023. There was 1 interview round.
Java SOLID principles are a set of design principles that help in creating maintainable and scalable software.
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: Subtypes must be substitutable for their base types.
I - Interface Segregation Principle: Cli...
HashMap is an implementation of Map interface that stores key-value pairs using a hash table.
HashMap uses hashing to store and retrieve elements.
It uses an array of linked lists to handle collisions.
The hash code of the key is used to determine the index of the array.
If multiple keys have the same hash code, they are stored in the same linked list.
When retrieving a value, the hash code is used to find the correct linke...
I applied via Recruitment Consulltant and was interviewed in May 2024. There was 1 interview round.
There were 2 questions and I was supposed to write the code inside the function but the input to the function is not given correctly. Instead of giving a list to sort, I was given a single value for a function to sort.
Analyst
1k
salaries
| ₹5 L/yr - ₹15.8 L/yr |
Associate
853
salaries
| ₹10 L/yr - ₹37 L/yr |
Vice President
327
salaries
| ₹17 L/yr - ₹65 L/yr |
Financial Analyst
137
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Senior Associate
58
salaries
| ₹11 L/yr - ₹31.9 L/yr |
Vanguard
State Street Global Advisors
Fidelity Investments
Goldman Sachs