Filter interviews by
The super keyword is used in Java to refer to the immediate parent class object.
Used to access methods and variables of the parent class
Helps in achieving method overriding in inheritance
Can be used to call the constructor of the parent class
Example: super.methodName();
Dynamic method dispatch is a mechanism by which a call to an overridden method is resolved at runtime rather than compile time.
In dynamic method dispatch, the actual method called is determined by the type of object at runtime.
It allows for polymorphism in object-oriented programming languages.
Example: Animal class with a method 'makeSound', and subclasses Dog and Cat that override 'makeSound'. Calling 'makeSound' on a...
The new keyword is used in object-oriented programming to create a new instance of a class or struct.
Used to allocate memory for a new object
Invokes the constructor of the class or struct
Returns a reference to the newly created object
I applied via Naukri.com and was interviewed before Feb 2023. There were 2 interview rounds.
Object-oriented programming (OOP) is a programming paradigm based on the concept of objects.
OOP is a way of organizing and designing software using objects
It focuses on encapsulation, inheritance, and polymorphism
Encapsulation allows data and methods to be bundled together in a single unit
Inheritance allows classes to inherit properties and methods from other classes
Polymorphism allows objects of different classes to b...
Top trending discussions
The person can escape the island by creating a firebreak or finding a body of water.
Create a firebreak by clearing a path of grass around oneself to prevent the fire from spreading.
Look for a body of water such as a lake, river, or ocean to escape the fire.
If no water source is available, try to find a sheltered area with less dry grass to wait for the fire to pass.
Use any available tools or materials to help create a
Polymorphism is the ability of an object to take on many forms. In C++, it is achieved through function overloading and virtual functions.
Polymorphism allows objects of different classes to be treated as objects of a common base class.
Function overloading enables multiple functions with the same name but different parameters.
Virtual functions allow derived classes to override base class functions.
based on 3 interviews
Interview experience
based on 12 reviews
Rating in categories
Junior Software Engineer
7
salaries
| ₹1 L/yr - ₹3.6 L/yr |
Software Engineer
6
salaries
| ₹1.8 L/yr - ₹4 L/yr |
Java Developer
4
salaries
| ₹0.8 L/yr - ₹4.2 L/yr |
Devops Engineer
4
salaries
| ₹1 L/yr - ₹7.2 L/yr |
Infosys
TCS
Wipro
HCLTech