i
HCLTech
Filter interviews by
I applied via Walk-in and was interviewed in Sep 2024. There were 3 interview rounds.
I applied via Walk-in and was interviewed in Mar 2024. There was 1 interview round.
Abstract class is a class that can have abstract methods and concrete methods, while interface is a contract that defines methods that a class must implement.
Abstract class can have constructors, member variables, and non-abstract methods.
Interface can only have abstract methods and constants.
A class can implement multiple interfaces but can only extend one abstract class.
Example: Abstract class - Animal with abstract ...
Spring is a framework that provides comprehensive infrastructure support, while Spring Boot is a tool that simplifies Spring application development.
Spring is a comprehensive framework that provides various modules for different functionalities like Spring MVC, Spring Security, Spring Data, etc.
Spring Boot is a tool that simplifies the setup and configuration of Spring applications by providing defaults and auto-config...
I applied via Naukri.com and was interviewed in Oct 2023. There were 3 interview rounds.
In Virtual meeting, They request to write code for their input in java
HCLTech interview questions for designations
SOLID principles are a set of five design principles to make software more maintainable, scalable, and flexible.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open-Closed Principle: Software entities should be open for extension but closed for modification.
L - Liskov Substitution Principle: Subtypes must be substitutable for their base types.
I - Interface Segregation Principle: A...
Java 8 introduced several new features including lambda expressions, streams, and default methods.
Lambda expressions allow for functional programming and simplify code.
Streams provide a way to process collections of data in a functional way.
Default methods allow for adding new methods to interfaces without breaking existing implementations.
Other features include the Date and Time API, Nashorn JavaScript engine, and imp...
I applied via Naukri.com and was interviewed in Oct 2021. There were 3 interview rounds.
What people are saying about HCLTech
posted on 5 Jan 2025
I applied via Naukri.com and was interviewed in Dec 2024. There were 3 interview rounds.
I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.
Use Streams to remove duplicates and retain only even numbers from an array.
Convert the array to a stream using Arrays.stream()
Use distinct() to remove duplicates
Filter out odd numbers using filter()
Collect the result using collect(Collectors.toList())
Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.
Static methods belong to the class itself, not to any specific instance
Final keyword ensures that the method cannot be overridden in subclasses
Static methods are commonly used for utility methods that do not require access to instance variables
Example: Math class in Java has static methods like Ma
The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.
RestController is a specialized version of Controller used for RESTful web services
RestController eliminates the need for @ResponseBody annotation
Controller is used for traditional MVC controller functionality
RestController returns data directly without needing to go through a view resolve...
Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.
Microservices allow for easier scalability and maintenance of complex applications.
Each service in a microservices architecture can be developed, deployed, and scaled independently.
Microservices promote flexibility and agility in software development.
Examples of companies us...
I applied via Company Website and was interviewed in Oct 2024. There were 2 interview rounds.
Memory leaks occur when a program allocates memory but does not release it, leading to inefficient memory usage.
Use tools like profilers to identify memory leaks in Java applications.
Avoid creating unnecessary objects and ensure proper garbage collection.
Avoid static references to objects that can prevent them from being garbage collected.
Close resources like files, database connections, and streams after use to preven
Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering.
Comparable is implemented by the class itself to define the natural ordering of objects.
Comparator is implemented by a separate class to define custom ordering of objects.
Example: String class implements Comparable interface for natural ordering, while Collections class uses Comparator for custom sorting.
2 Interview rounds
based on 11 reviews
Rating in categories
Software Engineer
22.6k
salaries
| ₹1.2 L/yr - ₹8 L/yr |
Technical Lead
20.9k
salaries
| ₹6.9 L/yr - ₹25 L/yr |
Senior Software Engineer
15.6k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.8k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Analyst
14.1k
salaries
| ₹1.3 L/yr - ₹6.7 L/yr |
TCS
Wipro
Accenture
Cognizant