i
Viral Fission
Filter interviews by
I applied via LinkedIn and was interviewed in Jan 2024. There was 1 interview round.
Top trending discussions
I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Java collections are data structures that store and manipulate groups of objects.
Types of collections include List, Set, Map, Queue, etc.
Internal workings involve data structures like arrays, linked lists, hash tables, etc.
Collections framework provides interfaces and classes for working with collections.
Count occurrences of a specific string in an array of strings.
Iterate through the array and use a HashMap to store the count of each string.
Use the string as key and increment the count each time it is encountered.
Return the count of the specific string at the end.
Using stream to filter a list of strings
Use the filter method to apply a predicate to each element in the stream
Convert the stream back to a list using the collect method
I applied via Company Website and was interviewed in May 2023. There were 4 interview rounds.
Quants,logical,verbal questions were asked in this round
Gd was held within 10 participants with a abstract topic
I applied via Job Fair and was interviewed in Jul 2024. There were 2 interview rounds.
Seeking new challenges and growth opportunities in a dynamic environment.
Desire for professional growth
Seeking new challenges
Interested in a more dynamic work environment
Hash map is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
Hash map uses hashing to map keys to their corresponding values.
It allows for constant time complexity O(1) for insertion, deletion, and retrieval operations.
Example: HashMap
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Java collections are data structures that store and manipulate groups of objects.
Types of collections include List, Set, Map, Queue, etc.
Internal workings involve data structures like arrays, linked lists, hash tables, etc.
Collections framework provides interfaces and classes for working with collections.
Example: ArrayList internally uses an array to store elements.
Count occurrences of a specific string in an array of strings.
Iterate through the array and compare each element with the target string.
Increment a counter each time the target string is found.
Return the final count of occurrences.
I applied via Referral and was interviewed in Jan 2023. There were 3 interview rounds.
Wrapper classes in Java are classes that allow primitive data types to be accessed as objects.
Wrapper classes provide a way to convert primitive data types into objects.
They are used when an object is required, such as in collections or generics.
Examples include Integer for int, Double for double, Boolean for boolean, etc.
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
It allows for better control over the data by preventing external code from directly modifying it.
Example: A class 'Car' with private variables like 'model', 'year', and public methods like 'getYear()' and 'setModel()'.
HashMap is a key-value pair collection while HashSet is a collection of unique elements.
HashMap stores key-value pairs while HashSet stores unique elements.
HashMap allows duplicate values but keys must be unique, while HashSet does not allow duplicates.
HashMap uses keys to retrieve values, while HashSet does not have keys and values are the same.
Example: HashMap
Optional class is used to handle null values in Java, preventing NullPointerExceptions.
Optional class was introduced in Java 8 to provide a more elegant way of handling null values.
It encourages developers to explicitly handle the presence or absence of a value, rather than relying on null checks.
Optional class has methods like isPresent(), get(), orElse(), etc. to work with optional values.
Using Optional class can mak...
Count duplicates in an int array
Create a HashMap to store the count of each element in the array
Iterate through the array and update the count in the HashMap
Count the elements with count greater than 1 as duplicates
Interview experience
Campus Ambassador
11
salaries
| ₹1 L/yr - ₹3 L/yr |
Java Developer
4
salaries
| ₹3.8 L/yr - ₹7.5 L/yr |
Senior Accounts Executive
4
salaries
| ₹3.6 L/yr - ₹6.3 L/yr |
Android Developer
4
salaries
| ₹3.5 L/yr - ₹5.5 L/yr |
Ambassador
4
salaries
| ₹1 L/yr - ₹2 L/yr |
TCS
Infosys
Wipro
HCLTech