i
HCLTech
Filter interviews by
I applied via Campus Placement and was interviewed in Mar 2023. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Nov 2021. There was 1 interview round.
Java is a high-level, object-oriented programming language used to develop applications for various platforms.
Java is platform-independent and can run on any device with a Java Virtual Machine (JVM)
It is known for its security features and is widely used for developing enterprise-level applications
Java is used for developing web applications, mobile applications, desktop applications, and more
What people are saying about HCLTech
I applied via Walk-in and was interviewed in Feb 2023. There were 2 interview rounds.
Object is an instance of a class that encapsulates data and behavior.
An object is created from a class using the 'new' keyword
Objects have state and behavior
State is represented by instance variables and behavior is represented by methods
Objects can interact with each other through method calls
Objects can be passed as arguments to methods and returned from methods
I applied via Company Website and was interviewed in Apr 2023. There was 1 interview round.
I applied via Recruitment Consultant and was interviewed in Jul 2020. There was 1 interview round.
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
I applied via Company Website and was interviewed in Nov 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.
Java 8 introduced lambda expressions for functional programming.
Java 11 added local-variable syntax for lambda parameters to simplify code.
Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.
Count the number of words in a given string.
Split the string by spaces and count the number of resulting elements.
Handle edge cases like multiple spaces or empty strings.
Consider punctuation marks as part of words unless specified otherwise.
I applied via Walk-in and was interviewed in Nov 2024. There were 3 interview rounds.
It's walkin, so they conducted 1 technical mcqs round.
HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.
HashMap uses an array of buckets to store key-value pairs.
Keys are hashed to determine the index in the array where the key-value pair will be stored.
In case of hash collisions, a linked list or a balanced tree is used to store multiple key-value pairs in the same bucket.
HashMap allows null keys...
Function to find and return all non-repeating characters in an array of strings.
Iterate through the array and count the occurrences of each character using a HashMap.
Then iterate through the array again and check if the count of each character is 1, if so add it to the result list.
Return the list of non-repeating characters.
To find the 3rd highest salary in a database, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query with 'ORDER BY salary DESC' to sort the salaries in descending order.
Use 'LIMIT 1 OFFSET 2' to skip the first two highest salaries and retrieve the third highest salary.
Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2;
A qualifier in Java is used to specify additional information about a primary, which is the main data type or variable.
A primary in Java is the main data type or variable, while a qualifier provides additional information about the primary.
Qualifiers can be used to modify the behavior or characteristics of a primary.
For example, in Java, 'final' is a qualifier that can be used to make a variable constant.
The main difference is that @RestController is a specialized version of @Controller that is used for RESTful web services.
Both @Controller and @RestController are used in Spring MVC to handle HTTP requests, but @RestController is specifically used for RESTful web services.
@Controller is used to create web pages, while @RestController is used to return data in JSON or XML format.
@RestController is a convenience annotati...
OOP concepts include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class Dog extends Animal.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.
Polymorphism: Ability for objects to be treated as instances of their paren...
Microservices communicate with each other through various communication protocols like HTTP, messaging queues, and gRPC.
Microservices can communicate over HTTP using RESTful APIs.
Messaging queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.
gRPC is a high-performance, open-source RPC framework that can be used for communication between microservices.
Service discovery mechanism...
Microservice endpoints can be accessed using HTTP requests with the appropriate URL
Use HTTP methods like GET, POST, PUT, DELETE to interact with the microservice
Construct the URL with the base URL of the microservice and the specific endpoint path
Include any necessary headers or parameters in the request for authentication or data filtering
Microservices allow for modular, scalable, and flexible software development by breaking down applications into smaller, independent services.
Microservices enable easier maintenance and updates as each service can be developed, deployed, and scaled independently.
They improve fault isolation, as failures in one service do not necessarily affect the entire application.
Microservices promote agility and faster time-to-mark...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Software Engineer
22.5k
salaries
| ₹1.2 L/yr - ₹8 L/yr |
Technical Lead
20.7k
salaries
| ₹6.9 L/yr - ₹25 L/yr |
Senior Software Engineer
15.4k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.7k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Senior Analyst
14k
salaries
| ₹1 L/yr - ₹8.7 L/yr |
TCS
Wipro
Accenture
Cognizant