i
HCLTech
Filter interviews by
Collection framework is a unified architecture for representing and manipulating collections of objects.
Provides interfaces (List, Set, Map) and classes (ArrayList, HashSet, HashMap) for storing and manipulating groups of objects
Offers algorithms for searching, sorting, and manipulating collections
Promotes code reusability and efficiency in handling collections
A program to count the number of characters in a given string.
Iterate through each character in the string and increment a counter for each character encountered.
Use a hashmap to store the count of each character for efficient counting.
Handle edge cases such as empty string or null input.
I applied via Naukri.com and was interviewed before Mar 2022. There were 2 interview rounds.
What people are saying about HCLTech
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Write java program to reverse each word
Selectors in Selenium are used to identify web elements on a webpage for automation testing.
Selectors include ID, class name, name, tag name, link text, partial link text, CSS selector, and XPath.
ID selector is the fastest and most reliable, while XPath is the most powerful but slower.
CSS selectors are commonly used due to their flexibility and readability.
Example: driver.findElement(By.id("elementID"));
Wait statements in Selenium are used to pause the execution of the test script for a specified amount of time.
Wait statements are used to handle synchronization issues in test automation scripts.
There are two types of wait statements in Selenium: Implicit Wait and Explicit Wait.
Implicit Wait sets a default waiting time for the elements to be available before throwing an exception.
Explicit Wait allows the test script to...
A program to write the Fibonacci series using iterative or recursive methods.
Use a loop to generate Fibonacci series iteratively
Use recursion to generate Fibonacci series recursively
Start with 0 and 1 as the first two numbers in the series
Add the previous two numbers to get the next number in the series
Product backlog is a prioritized list of features to be developed. Sprint backlog is a subset of product backlog for a specific sprint.
Product backlog is a dynamic document that evolves with the product development cycle
It contains a list of features, enhancements, bug fixes, and other work items
The items in the backlog are prioritized based on business value, risk, and other factors
Sprint backlog is a subset of produc...
Velocity is the amount of work a team can complete in a sprint. Zero sprint is a sprint with no completed work.
Velocity is a measure of a team's productivity in completing work during a sprint
It is calculated by adding up the story points or tasks completed in a sprint
Zero sprint is a sprint where no work is completed due to unforeseen circumstances or issues
It is important to track velocity to help plan future sprints
I applied via Referral and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
A constructor is a special type of method in a class that is automatically called when an object of that class is created.
Constructors have the same name as the class they belong to
They are used to initialize the object's state or perform any necessary setup
Constructors can have parameters to customize the initialization process
Example: public class Car { public Car(String color) { this.color = color; } }
Yes, a static method can be overridden in Java using the concept of method hiding.
In Java, static methods cannot be overridden in the traditional sense like instance methods.
When a subclass defines a static method with the same signature as a static method in the superclass, it is called method hiding.
Method hiding does not follow polymorphism and is resolved at compile time based on the reference type.
Example: class...
Yes, a static local variable can be created inside a static method.
Yes, a static local variable can be declared inside a static method in programming languages like C++.
Static local variables retain their values between function calls.
Example: static void myStaticMethod() { static int count = 0; count++; }
String memory allocation is dynamic and depends on the length of the string.
String memory allocation is dynamic and can change based on the length of the string.
In Java, a String object is stored in the heap memory.
Each character in a String typically takes up 2 bytes of memory.
String objects in Java are immutable, meaning once a String object is created, it cannot be changed.
Yes, you can create a static method inside an abstract class or interface.
Static methods can be defined in interfaces since Java 8.
Static methods in interfaces are used for providing utility methods that are not tied to any specific instance of the interface.
Static methods in abstract classes can be used for common functionality that does not require an instance of the class.
The parent class of Java is the Object class.
All classes in Java are directly or indirectly derived from the Object class.
The Object class is the root class in Java's class hierarchy.
It provides methods that are common to all objects in Java, such as toString(), equals(), and hashCode().
Window Handles in Selenium are unique identifiers used to handle multiple browser windows in a Selenium test script.
Window Handles are unique alphanumeric strings assigned to each browser window opened by Selenium.
They are used to switch between different browser windows during a test script execution.
Window Handles can be obtained using getWindowHandles() method in Selenium.
Example: Set
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Java OOPs concepts are used in automation framework design for better code organization and reusability.
Encapsulation: Used to hide the internal implementation details of classes and provide access through methods.
Inheritance: Allows for code reuse by creating parent-child relationships between classes.
Polymorphism: Enables methods to behave differently based on the object they are called on.
Abstraction: Helps in defin...
OTP can be handled by generating, sending, and verifying it in automated tests.
Generate OTP using a random number generator
Send OTP to the user via email, SMS, or any other communication channel
Verify OTP entered by the user against the generated OTP
To start Appium in automation, you need to install Appium server, set up desired capabilities, and run the server.
Install Appium server using npm install -g appium
Set up desired capabilities in your test script
Start the Appium server using the command appium
Types of mobile apps include native apps, web apps, and hybrid apps.
Native apps are developed for specific platforms like iOS or Android
Web apps are accessed through a web browser and do not need to be downloaded from an app store
Hybrid apps combine elements of both native and web apps
Examples include Instagram (native), Twitter (web), and Uber (hybrid)
Program to remove duplicate letters in a string
Iterate through the string and keep track of seen characters in a set
Append characters to a new string only if they are not already in the set
Return the new string without duplicate letters
Swipe action in mobile devices can be performed using swipe() method in Appium or TouchAction class in Selenium.
Use swipe() method in Appium to perform swipe action in mobile devices
Alternatively, use TouchAction class in Selenium for swipe action
Specify the start and end coordinates for the swipe action
Adjust the duration and speed of the swipe as needed
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
Java program to print sum of digits from a given string
Iterate through each character in the string
Check if the character is a digit using Character.isDigit() method
Convert the digit character to integer using Character.getNumericValue() method
Sum up all the digits found in the string
OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.
Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.
Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example of compile-time polymorphism: function overloading in Java.
Example of runtime polymorphism: method overriding in Java
Java program to print the sum of elements in a string array.
Convert each element in the string array to an integer using Integer.parseInt()
Sum up all the integers to get the total sum
Joins in SQL are used to combine rows from two or more tables based on a related column between them.
Joins are used to retrieve data from multiple tables based on a related column.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column;
TestNG is a testing framework for Java that supports various testing levels and annotations.
TestNG allows for easy configuration of test suites, test cases, and test methods.
It supports parallel execution of tests, data-driven testing, and parameterization.
TestNG provides detailed test reports and allows for grouping of test methods.
Annotations like @Test, @BeforeSuite, @AfterSuite, etc., help in defining test methods
POM is a design pattern in automation testing where web pages are represented as classes, and the interactions are defined as methods.
POM helps in creating a clear separation between test scripts and page objects.
It improves test maintenance and readability.
Page classes contain locators and methods to interact with the elements on the page.
Test scripts call these methods to perform actions on the page.
Example: LoginPag...
As a QA lead, my day to day activities involve overseeing testing processes, coordinating with team members, creating test plans, and ensuring quality standards are met.
Coordinate with team members to assign testing tasks and ensure deadlines are met
Create and review test plans, test cases, and test scripts
Conduct regular meetings with the team to discuss progress and address any issues
Collaborate with developers and o...
based on 4 reviews
Rating in categories
Software Engineer
22.3k
salaries
| ₹1.2 L/yr - ₹8 L/yr |
Technical Lead
20.7k
salaries
| ₹7 L/yr - ₹25 L/yr |
Senior Software Engineer
15.4k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.8k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Senior Analyst
13.9k
salaries
| ₹1 L/yr - ₹8.7 L/yr |
TCS
Wipro
Accenture
Cognizant