Filter interviews by
I applied via Campus Placement and was interviewed in Mar 2024. There were 2 interview rounds.
1)Spy number
2)Pattern
Method overloading is having multiple methods in the same class with the same name but different parameters. Method overriding is redefining a method in a subclass with the same name and parameters as in the superclass.
Method overloading allows a class to have multiple methods with the same name but different parameters.
Method overriding involves redefining a method in a subclass that is already defined in the supercla...
A dangling pointer is a pointer that points to a memory location that has been deallocated, leading to undefined behavior.
Dangling pointers can occur when a pointer is not set to NULL after the memory it points to is freed.
Accessing a dangling pointer can result in a crash or unexpected behavior.
Example: int *ptr = new int; delete ptr; // ptr is now a dangling pointer
A class is a blueprint for creating objects, and objects are instances of classes. Constructors are special methods used to initialize objects.
Class is a template that defines the properties and behaviors of objects.
Object is an instance of a class that has its own state and behavior.
Constructors are special methods used to initialize objects when they are created.
Example: Class 'Car' defines properties like 'color' an...
Top trending discussions
Interview experience
Software Developer
20
salaries
| ₹3.9 L/yr - ₹10.5 L/yr |
Junior Software Developer
12
salaries
| ₹2 L/yr - ₹6 L/yr |
Senior Software Developer
5
salaries
| ₹7.5 L/yr - ₹20 L/yr |
Software Developer Trainee
4
salaries
| ₹3 L/yr - ₹3.5 L/yr |
Junior Developer
4
salaries
| ₹3.9 L/yr - ₹7.5 L/yr |
TCS
Infosys
Wipro
HCLTech