Filter interviews by
Runtime polymorphism is the ability of a function to behave differently based on the object it is called with.
Runtime polymorphism is achieved through method overriding in object-oriented programming.
It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.
The actual method that gets called is determined at runtime based on the type of object.
Example: Inheritance ...
Abstraction is the concept of hiding complex implementation details and showing only the necessary information to the user.
Abstraction allows developers to focus on the essential features of an object while hiding unnecessary details.
It helps in reducing complexity and improving the efficiency of the code.
For example, a car can be abstracted as a vehicle with properties like speed, fuel consumption, and color, without ...
Code to find duplicates in an array of strings
Iterate through the array and store each element in a HashSet
If an element is already in the HashSet, it is a duplicate
Return a list of duplicates found
Hashing is a process of converting input data into a fixed-size string of bytes using a hash function.
Hashing is used to securely store passwords by converting them into a hash value.
Hashing is used in data retrieval systems to quickly locate data based on a key.
Common hash functions include MD5, SHA-1, and SHA-256.
Top trending discussions
I applied via Naukri.com and was interviewed before Aug 2020. There were 4 interview rounds.
posted on 26 May 2022
I applied via Approached by Company and was interviewed before May 2021. There were 2 interview rounds.
based on 1 interview experience
based on 3 reviews
Rating in categories
Software Engineer
4
salaries
| ₹4 L/yr - ₹8.4 L/yr |
Junior Software Engineer
3
salaries
| ₹3.6 L/yr - ₹4 L/yr |
TCS
Accenture
Wipro
Cognizant