i
HCLTech
Filter interviews by
I applied via Recruitment Consulltant and was interviewed before Oct 2023. There were 2 interview rounds.
OOPS concepts in Java refer to the principles of Object-Oriented Programming such as Inheritance, Polymorphism, Encapsulation, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Polymorphism: Allows objects to be treated as instances of their parent class. Example: Animal class with different subclasses like Dog, Cat.
Encapsulation: Bundlin...
I want to join the company because of its reputation for innovation and commitment to quality.
Impressed by company's track record of successful projects
Excited about opportunities for professional growth and development
Aligned with company values and culture
Interested in working with talented and diverse team members
I applied via Naukri.com and was interviewed in Jan 2024. There were 3 interview rounds.
What people are saying about HCLTech
I applied via Referral and was interviewed in Oct 2024. There was 1 interview round.
To build the test process for a new project, start by understanding project requirements, creating test plan, designing test cases, executing tests, and continuously improving the process.
Understand project requirements and objectives
Create a test plan outlining scope, objectives, resources, and timelines
Design test cases based on requirements and risks
Execute tests using appropriate tools and techniques
Continuously mo
Prioritize testing based on critical functionalities, automate repetitive tests, involve stakeholders in risk assessment, and communicate effectively.
Prioritize testing based on critical functionalities to ensure essential features are thoroughly tested.
Automate repetitive tests to save time and focus on more critical test scenarios.
Involve stakeholders in risk assessment to identify key areas to focus on and potential...
I applied via Naukri.com and was interviewed in Jun 2022. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Absolute Xpath starts from the root element, while relative Xpath starts from any node in the DOM structure.
Absolute Xpath starts with a single forward slash (/) and starts selection from the root node.
Relative Xpath starts with a double forward slash (//) and starts selection from the current node or any node in the DOM structure.
Absolute Xpath is more brittle and prone to breaking if the structure of the page changes...
The return would be the number of tabs open in the browser.
The return value would be an integer representing the count of open tabs.
For example, if there are 5 tabs open, the return value would be 5.
Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait.
Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.
Fluent Wait: Waits for a condition to be true with a defined polling frequency.
Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Exceptions in Selenium are errors that occur during test execution, disrupting the flow of the test script.
Exceptions are thrown when there is an unexpected behavior in the application under test or in the test script itself.
Common exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, TimeoutException, and StaleElementReferenceException.
Handling exceptions in Selenium can be done using try-...
Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.
Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.
Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.
Feature files a...
Data can be input in Cucumber using feature files and step definitions.
Data can be input in feature files using scenarios and scenario outlines
Step definitions can be used to define the actions to be taken with the input data
Data tables can be used in feature files to input structured data
Examples keyword can be used in scenario outlines to provide multiple sets of input data
Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.
Test case: specific conditions to be tested, expected results, steps to execute
Test plan: overall strate...
Hooks in Java are methods that allow subclasses to override or extend the behavior of a superclass.
Hooks are commonly used in frameworks like JUnit and TestNG for test automation.
They are often used for setup and teardown operations before and after test methods.
Examples include @Before, @After, @BeforeClass, and @AfterClass annotations in JUnit.
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 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
I applied via Naukri.com and was interviewed in Nov 2024. There were 3 interview rounds.
Java related coding and questions related to selenium
based on 60 reviews
Rating in categories
Software Engineer
22.5k
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.8k
salaries
| ₹1 L/yr - ₹8.7 L/yr |
TCS
Wipro
Accenture
Cognizant