i
Calsoft
Filter interviews by
Clear (1)
Java Oops is a programming concept that focuses on objects and classes to create reusable code.
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: allows a class to inherit properties and behavior from another class
Polymorphism: ability of a method to do different things based on the object it is acting upon
Inheritance in Java allows a class to inherit properties and behavior from another class.
Inheritance is achieved using the 'extends' keyword in Java.
Subclass inherits all non-private fields and methods from superclass.
Subclass can override superclass methods to provide specific implementation.
Superclass can be abstract, preventing instantiation of the class.
Example: class Dog extends Animal { ... }
I applied via Naukri.com and was interviewed before May 2022. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Apr 2022. There were 4 interview rounds.
Top trending discussions
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Feb 2020. There were 6 interview rounds.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed in Oct 2020. There were 4 interview rounds.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Start from the first element and compare it with the next element
If the next element is smaller, swap them
Repeat this process for all elements in the array
Continue this process until no more swaps are needed
A program to print all prime numbers
Take input from user for range of numbers
Loop through the range and check if each number is prime
Print the prime numbers
Hashmap is a data structure that stores key-value pairs and allows constant time access to values based on their keys.
Hashmap uses a hash function to map keys to indices in an array.
Collisions can occur when multiple keys map to the same index, which can be resolved using techniques like chaining or open addressing.
Examples of hashmap implementations include Java's HashMap class and Python's dict type.
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reuse and promotes code organization.
The existing class is called the parent or superclass, and the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class and can also add new properties and methods.
For...
I applied via Walk-in and was interviewed in Mar 2021. There was 1 interview round.
I applied via Naukri.com and was interviewed in Nov 2020. There were 5 interview rounds.
I applied via Recruitment Consultant and was interviewed in Mar 2021. There were 3 interview rounds.
based on 7 interviews
Interview experience
based on 30 reviews
Rating in categories
Development Engineer
334
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Development Engineer
215
salaries
| ₹5.4 L/yr - ₹20 L/yr |
Softwaretest Engineer
130
salaries
| ₹3 L/yr - ₹6.7 L/yr |
Principal Development Engineer
124
salaries
| ₹10 L/yr - ₹33 L/yr |
Senior Software Engineer
98
salaries
| ₹6 L/yr - ₹22.3 L/yr |
Persistent Systems
LTIMindtree
Mphasis
TCS