Infosys
Cervello Interview Questions and Answers
Q1. How to achieve multiple inheritance in java
Multiple inheritance is not supported in Java due to the Diamond Problem, but can be achieved using interfaces.
Java does not support multiple inheritance of classes due to the Diamond Problem
Multiple inheritance can be achieved in Java using interfaces
Create multiple interfaces with desired methods and implement them in a single class
Q2. What is explicit and implicit wait
Explicit wait is defined by the user to wait for a certain condition to be met before proceeding, while implicit wait is set globally for the entire test script.
Explicit wait is used for specific elements and conditions, like waiting for an element to be clickable or visible.
Implicit wait is set once at the beginning of the test script and is applied to all elements, waiting for a specified amount of time before throwing an exception.
Explicit wait provides more control and fl...read more
Q3. Difference between POM & pagefactory
POM is a design pattern that separates test scripts from page objects, while PageFactory is a class in Selenium used to initialize elements in a page object model.
POM (Page Object Model) is a design pattern that organizes test scripts by separating them from page objects.
PageFactory is a class in Selenium that is used to initialize elements in a page object model.
POM helps in improving code reusability, readability, and maintenance.
PageFactory simplifies the process of initia...read more
Q4. tell about infosys
Infosys is a global consulting and IT services company headquartered in India.
Founded in 1981 by Narayana Murthy and his colleagues
Provides services in areas such as software development, maintenance, and consulting
Has a presence in over 46 countries worldwide
Listed on the NYSE and BSE stock exchanges
Q5. What is dry run
Dry run is a practice run of a program or system to test its functionality without actually executing it.
Dry run helps in identifying any potential issues or errors before the actual execution of the program.
It involves going through the code or system logic step by step to simulate the execution process.
Dry run is commonly used in programming and testing to ensure the correctness of the code.
It is a way to validate the flow of the program without actually running it on the t...read more
Q6. Hashmap vs Hashtree
Hashmap is a data structure that stores key-value pairs, while Hashtree is a tree-like structure used for storing and organizing data.
Hashmap is a key-value pair data structure, allowing fast retrieval of values based on keys.
Hashtree is a tree-like structure used for storing and organizing data in a hierarchical manner.
Hashmap is typically used for faster retrieval of data, while Hashtree is used for organizing data in a structured way.
Example: Hashmap can be used to store u...read more
Interview Process at Cervello
Top Selenium Automation Tester Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month