Filter interviews by
Clear (1)
Stream API in Java provides a functional approach to processing collections of objects.
Allows for concise and readable code by using functional programming concepts like map, filter, and reduce.
Enables parallel processing of data, improving performance for large datasets.
Supports lazy evaluation, allowing for efficient use of resources.
Example: List
Java code to filter even numbers from a list and store the square of those in another list
Create two ArrayLists to store the original list and the squared even numbers list
Iterate through the original list and check if each number is even
If the number is even, square it and add it to the squared even numbers list
Java code to check if two strings are anagrams
Create a function that takes in two strings as parameters
Convert both strings to char arrays and sort them
Compare the sorted char arrays to check if they are equal
Functional interfaces in Java are needed to enable the use of lambda expressions, which provide a concise way to implement single abstract method interfaces.
Functional interfaces have exactly one abstract method and can have multiple default or static methods.
They are used to enable the use of lambda expressions, which provide a concise way to implement the single abstract method.
Examples of functional interfaces in Ja...
Threads in Java can be created by extending the Thread class or implementing the Runnable interface.
Extend the Thread class and override the run() method
Implement the Runnable interface and implement the run() method
Use the Executor framework for managing threads
Top trending discussions
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Oct 2019. There were 3 interview rounds.
I applied via LinkedIn and was interviewed before Dec 2020. There was 1 interview round.
C++ is an extension of C with object-oriented programming features.
C++ supports object-oriented programming while C does not.
C++ has classes and templates while C does not.
C++ has better support for function overloading and default arguments.
C++ has a standard library that includes many useful functions.
C++ allows for both procedural and object-oriented programming.
C++ is generally considered to be a more complex langu
I applied via Naukri.com and was interviewed before Dec 2020. There were 3 interview rounds.
I applied via Company Website and was interviewed before May 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed in Apr 2020. There was 1 interview round.
based on 1 interview
Interview experience
based on 1 review
Rating in categories
Senior Engineer
417
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
334
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
286
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
257
salaries
| ₹0 L/yr - ₹0 L/yr |
Engineer
149
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech