i
HCLTech
Filter interviews by
I applied via Campus Placement
A constructor is a special method that is used to initialize objects of a class.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
They can be used to set initial values for object properties.
Constructors can be overloaded to accept different parameters.
Example: public class Car { public Car() { // constructor code here } }
Multiple inheritance cannot be achieved directly in Java, but it can be simulated using interfaces or abstract classes.
Java does not support multiple inheritance of classes
Multiple inheritance can be achieved using interfaces or abstract classes
Interfaces allow a class to inherit from multiple interfaces
Abstract classes can provide partial implementation and can be extended by a single class
I applied via Campus Placement
A constructor is a special method that is used to initialize objects of a class.
Constructors have the same name as the class they belong to.
They are called automatically when an object of the class is created.
They can be used to set default values for object properties.
Constructors can be overloaded to accept different parameters.
Example: public class Car { public Car() { // constructor code here } }
Java does not support multiple inheritance, but it can be achieved using interfaces.
Java supports multiple interface inheritance
A class can implement multiple interfaces
Interfaces can extend other interfaces
Example: class A implements interface B and C
Example: interface B extends interface D and E
I applied via Company Website and was interviewed before Nov 2020. There were 4 interview rounds.
I am a software trainee with knowledge in linked list and array list.
I have experience in implementing linked lists and array lists in various programming languages.
Linked lists are dynamic data structures while array lists are static data structures.
Linked lists are efficient for insertion and deletion operations while array lists are efficient for random access.
Examples of programming languages that support linked li
What people are saying about HCLTech
I was interviewed in Jan 2025.
Tell me about your self
I applied via LinkedIn and was interviewed in Apr 2024. There were 2 interview rounds.
They gave 3 codes in which we have to write atleast 2 of them.
Aptitude basic question
2 coding questions, questions were base on basic oops concepts
Amcat shl test
was conducted , long process
I applied via Naukri.com and was interviewed in Mar 2023. There were 3 interview rounds.
It's ask Quantitative, verbal Ability,and logical Questions.. All question was easily to hard levels..
I applied via Company Website and was interviewed in Aug 2022. There were 3 interview rounds.
I had coding and aptitude both in this test itself. Even though coding was a little bit tough aptitude was easy to pass. if you were thoroughly prepared u can crack it easily.
I applied via Job Fair and was interviewed before Feb 2023. There were 3 interview rounds.
This is a basic test where you will be asked to solve logical and reasoning questions. Pseudo codes and some basic programs.
Object-oriented programming is a programming paradigm that organizes code into objects that interact with each other.
Encourages modular and reusable code
Focuses on data and behavior encapsulation
Supports inheritance and polymorphism
Examples: Java, C++, Python
Encapsulation is the process of hiding internal details and providing a public interface for accessing and manipulating data.
Encapsulation is a fundamental principle of object-oriented programming.
It helps in achieving data abstraction and data hiding.
By encapsulating data and methods within a class, we can control access to them.
Encapsulation improves code maintainability and reusability.
Example: A class with private ...
Program to find prime number
A prime number is a number greater than 1 that has no positive divisors other than 1 and itself
To check if a number is prime, iterate from 2 to the square root of the number and check if it divides the number evenly
If the number is divisible by any number in the range, it is not prime
Optimization: Only iterate up to the square root of the number, as factors repeat after that
based on 2 reviews
Rating in categories
Software Engineer
23k
salaries
| ₹1.7 L/yr - ₹8 L/yr |
Technical Lead
21.2k
salaries
| ₹7 L/yr - ₹28 L/yr |
Senior Software Engineer
15.8k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.9k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Analyst
14.4k
salaries
| ₹0.8 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant