i
HCLTech
Filter interviews by
Clear (1)
Constructors are special methods in a class that are used to initialize objects.
Constructors have the same name as the class they belong to.
They are called automatically when an object of the class is created.
Constructors can have parameters to initialize object properties.
Example: public class Car { public Car(String color) { this.color = color; }}
Final keyword in Java is used to restrict the user from changing the value of a variable, making it a constant.
Final keyword can be applied to variables, methods, and classes.
Final variables must be initialized and cannot be reassigned.
Final methods cannot be overridden in subclasses.
Final classes cannot be subclassed.
I applied via Campus Placement and was interviewed before Jan 2024. There were 3 interview rounds.
It was on statistics and logic based questions
Sort the array without using library
General knowledge discussion
What people are saying about HCLTech
I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.
I was interviewed in Mar 2021.
I applied via Campus Placement and was interviewed in Aug 2021. There was 1 interview round.
I was interviewed in Oct 2020.
Round duration - 120 minutes
Round difficulty - Easy
This was MCQ+Coding round.
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...
Determine if two strings are anagrams of each other by checking if they have the same characters in different order.
Create a frequency map of characters for both strings and compare them.
Sort both strings and check if they are equal.
Use a hash table to store character counts and compare the counts for both strings.
Round duration - 30 minutes
Round difficulty - Easy
This was face to face interview round.
Given a string S
which represents a number, determine the smallest number strictly greater than the original number composed of the same digits. Each digit's frequenc...
Given a number represented as a string, find the smallest number greater than the original with the same set of digits.
Iterate from right to left to find the first digit that can be swapped with a larger digit to make the number greater.
Swap this digit with the smallest digit to its right that is larger than it.
Sort the digits to the right of the swapped digit in ascending order to get the smallest number greater than ...
You have a robot currently positioned at the origin (0, 0) on a two-dimensional grid, facing the north direction. You are given a sequence of moves in the form of a string ...
Determine if a robot's movement path is circular on a 2D grid given a sequence of moves.
Create a set of directions to keep track of the robot's current direction (north, east, south, west).
Simulate the robot's movement based on the given sequence of moves (L - turn left, R - turn right, G - move forward).
Check if the robot returns to the starting position after completing the sequence of moves.
Example: For 'GLGLGLG', t...
Round duration - 20 minutes
Round difficulty - Easy
This round is basically on zoom meet .
Tip 1 : Participate in live contests on websites like Codechef, Codeforces etc as much as possible.
Tip 2 : Practice previous interview questions from LeetCode, GeeksForGeeks.
Tip 3 : Revise Computer Science subjects like DBMS, OOPS thoroughly.
Tip 4 : Do practice a lot of data structures questions as mostly questions in interviews are based on them
Tip 1 : Add projects and Internships if you have done any and add only those things which you really know.
Tip 2 : Highlight most important skills and points in your resume
Tip 3 : Provide certificate of only important things
I applied via Company Website and was interviewed before Dec 2020. There were 4 interview rounds.
based on 2 interviews
Interview experience
Software Engineer
23.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
21.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
15.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
14.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Analyst
14.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Accenture
Cognizant