Premium Employer

i

This company page is being actively managed by HCLTech Team. If you also belong to the team, you can get access from here

HCLTech Verified Tick

Compare button icon Compare button icon Compare
3.5

based on 34.1k Reviews

Filter interviews by

HCLTech Java Software Engineer Interview Questions and Answers

Updated 21 May 2021

HCLTech Java Software Engineer Interview Experiences

1 interview found

I applied via Naukri.com and was interviewed in Nov 2020. There were 6 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Oops concepts, collection, multithreading
  • Q2. Data structures

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well java , ds and your resume

Interview questions from similar companies

I applied via Naukri.com

Interview Questionnaire 

3 Questions

  • Q1. Write a user microservice to get the data from h2DB.
  • Ans. 

    A user microservice to retrieve data from h2DB

    • Create a REST API endpoint to handle user requests

    • Use JDBC to connect to the h2DB and retrieve data

    • Implement caching to improve performance

    • Ensure proper error handling and logging

    • Secure the API with authentication and authorization

  • Answered by AI
  • Q2. How to create thread singleton
  • Ans. 

    To create thread singleton, use double-checked locking or enum.

    • Use double-checked locking to ensure only one instance is created

    • Alternatively, use enum to create a singleton with thread safety

    • Ensure proper synchronization to avoid race conditions

  • Answered by AI
  • Q3. What does spring boot starter pom
  • Ans. 

    Spring Boot Starter POM is a parent POM that provides a set of dependencies for Spring Boot applications.

    • It includes commonly used dependencies such as Spring Framework, Spring Boot, and Spring Data.

    • It simplifies the process of configuring and deploying Spring Boot applications.

    • Developers can add additional dependencies to the POM file as needed.

    • Examples of Spring Boot Starter POMs include spring-boot-starter-web, spri...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - they dont care much about your previuos projects and all its really good thing, you will be having direct technical questions , should have strong knowledge in multithreading and singleton classes, they dont ask basic questions you must have strong knowledge in that area
be prepared to able to write programs in numbers series, good to have knowledge in data structues its really helpful..

ALL THE BEST.. MY BEST WISHES

Skills evaluated in this interview

Interview Questionnaire 

1 Question

  • Q1. All java areas - basics Like inheritance polymorphism, method overloading, overriding, garbage collection, collections, data structure their implimentation, exception handling, java 8, on Postgres -...

I applied via Referral and was interviewed in Mar 2021. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Oops, Collections, spring hibernate

Interview Preparation Tips

Interview preparation tips for other job seekers - Many questions in spring and hibernate

I applied via Naukri.com

Interview Questionnaire 

1 Question

  • Q1. Springboot, microservices, java8 and internal implementations of collection framework

Interview Preparation Tips

Interview preparation tips for other job seekers - Today's market trend in java platform is Springboot with microservices in cloud platform. If you learn these skills, you can survive as Java backend developer for next 3 years. Added advantage - angular 2+ knowledge.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. What are intermediate and terminal operations
  • Q2. Predefined functional interface
  • Q3. Ways to create Thread

Interview Preparation Tips

Interview preparation tips for other job seekers - It was moderate level of interview
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

I applied via Referral and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Technical 

(11 Questions)

  • Q1. Internal working of HashMap
  • Q2. Features of java8
  • Q3. Use of synchronized keyword
  • Q4. Difference between failsafe and fail fast and also its implementation
  • Q5. Coding question : sort an array, use of streams to find names from employee object whose salary is greater than 50000
  • Q6. Difference between concurrent and generic collection
  • Q7. What is string pool. What is string literal?
  • Q8. Security measures used in your project
  • Q9. What is difference between rest and soap
  • Q10. What do u mean by REST state
  • Q11. What is serialization? What is the way to stop serialization?
Round 2 - Manegerial Round 

(4 Questions)

  • Q1. Difference between failsafe and faifast
  • Q2. Difference between concurrent and generic collection
  • Q3. Security measures used in current project
  • Q4. Why you are leaving your current organization and follow up questions on that

Interview Preparation Tips

Interview preparation tips for other job seekers - Please prepare well on your project and java 8 features(if you are using java8). also please brush up knowledge on collections, multithreading, and oops concept
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Walk-in and was interviewed in Nov 2024. There were 3 interview rounds.

Round 1 - Coding Test 

It's walkin, so they conducted 1 technical mcqs round.

Round 2 - Technical 

(11 Questions)

  • Q1. Multi threading
  • Q2. Internal working of hashmap
  • Ans. 

    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...

  • Answered by AI
  • Q3. Spring batch related
  • Q4. Non repeating characters in a array
  • Ans. 

    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.

  • Answered by AI
  • Q5. 3rd highest salary
  • Ans. 

    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;

  • Answered by AI
  • Q6. Qualifier vs primary
  • Ans. 

    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.

  • Answered by AI
  • Q7. Controller vs restcontroller
  • Ans. 

    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...

  • Answered by AI
  • Q8. Spring boot annotataions
  • Q9. Oops concepts with examples
  • Ans. 

    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...

  • Answered by AI
  • Q10. Spring batch configuration
  • Q11. They covered all java, spring and Microservices
Round 3 - Technical 

(4 Questions)

  • Q1. Microservices architecture
  • Q2. How do Microservices communicate
  • Ans. 

    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...

  • Answered by AI
  • Q3. How to access the Microservice end point
  • Ans. 

    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

  • Answered by AI
  • Q4. Why we use microservices
  • Ans. 

    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...

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - Technical 

(4 Questions)

  • Q1. Given an array {1, 2, 1, 4, 5, 4, 8, 7}, how can you use Streams to remove duplicates while retaining only the even numbers?
  • Ans. 

    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())

  • Answered by AI
  • Q2. What is the use of Static and final when you will use Static methods
  • Ans. 

    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

  • Answered by AI
  • Q3. What is the difference between @restController and @controller Annotation
  • Ans. 

    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...

  • Answered by AI
  • Q4. What is microservices why we use it
  • Ans. 

    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...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Senior Java Developer interview:
  • Java SpringBoot
Interview preparation tips for other job seekers - Need to have strong knowledge on basics Java Spring boot and Microservices
Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
No response

I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Coding questions on java8
  • Q2. Regarding microservices
  • Q3. Internal working of circuit breaker
  • Ans. 

    Circuit breaker is a design pattern used in software development to prevent system failures by temporarily stopping requests to a failing service.

    • Circuit breaker monitors the number of failures and opens when a threshold is reached.

    • When the circuit is open, requests are not sent to the failing service, preventing further failures.

    • After a specified time, the circuit breaker closes and allows requests to be sent again.

    • Ex...

  • Answered by AI
  • Q4. Frequency of occurrence of words
  • Ans. 

    Frequency of occurrence of words in a given text can be calculated by counting each word and storing it in a data structure.

    • Split the text into words using whitespace as delimiter

    • Create a map to store word frequencies

    • Iterate through the words and update the frequency count in the map

    • Return the map with word frequencies

  • Answered by AI
  • Q5. How spring boot will work two databases
  • Ans. 

    Spring Boot can work with two databases by configuring multiple data sources and using @Primary annotation.

    • Configure multiple data sources in application.properties or application.yml

    • Use @Primary annotation to specify the primary data source

    • Use @Qualifier annotation to specify the secondary data source

    • Example: @Configuration @EnableTransactionManagement public class DatabaseConfig { @Primary @Bean(name = "primaryDataSo...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - If you don't get any update from them don't give interview.

Skills evaluated in this interview

HCLTech Interview FAQs

How to prepare for HCLTech Java Software Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at HCLTech. The most common topics and skills that interviewers at HCLTech expect are Java, Software Engineering, Core Java and Advanced Java.
What are the top questions asked in HCLTech Java Software Engineer interview?

Some of the top questions asked at the HCLTech Java Software Engineer interview -

  1. Oops concepts, collection, multithread...read more
  2. Data structu...read more

Tell us how to improve this page.

People are getting interviews through

based on 1 HCLTech interview
Job Portal
100%
Low Confidence
?
Low Confidence means the data is based on a small number of responses received from the candidates.
Join HCLTech Find your spark and discover what drives you forward

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.2k Interviews
Accenture Interview Questions
3.9
 • 8k Interviews
Infosys Interview Questions
3.7
 • 7.5k Interviews
Wipro Interview Questions
3.7
 • 5.5k Interviews
Cognizant Interview Questions
3.8
 • 5.5k Interviews
Capgemini Interview Questions
3.8
 • 4.7k Interviews
Tech Mahindra Interview Questions
3.6
 • 3.7k Interviews
Genpact Interview Questions
3.9
 • 3k Interviews
LTIMindtree Interview Questions
3.9
 • 2.8k Interviews
IBM Interview Questions
4.1
 • 2.3k Interviews
View all
HCLTech Java Software Engineer Salary
based on 7 salaries
₹2.5 L/yr - ₹4 L/yr
53% less than the average Java Software Engineer Salary in India
View more details

HCLTech Java Software Engineer Reviews and Ratings

based on 5 reviews

1.9/5

Rating in categories

2.9

Skill development

3.8

Work-Life balance

3.6

Salary & Benefits

4.4

Job Security

3.6

Company culture

3.2

Promotions/Appraisal

3.4

Work Satisfaction

Explore 5 Reviews and Ratings
Software Engineer
22.5k salaries
unlock blur

₹1.2 L/yr - ₹8 L/yr

Technical Lead
20.7k salaries
unlock blur

₹6.9 L/yr - ₹25 L/yr

Senior Software Engineer
15.4k salaries
unlock blur

₹4 L/yr - ₹16.5 L/yr

Lead Engineer
14.8k salaries
unlock blur

₹4.2 L/yr - ₹14 L/yr

Senior Analyst
13.9k salaries
unlock blur

₹1 L/yr - ₹8.5 L/yr

Explore more salaries
Compare HCLTech with

TCS

3.7
Compare

Wipro

3.7
Compare

Accenture

3.9
Compare

Cognizant

3.8
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview