Filter interviews by
I applied via Referral and was interviewed in May 2024. There were 2 interview rounds.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and non-abstract methods along with abstract methods.
Interfaces can only have abstract methods and constants, no constructors or fields.
An abstract class can provide a default implementation for some methods, while an interface cannot.
An abstract class can be exten...
findelement returns the first matching element on the page, findelements returns a list of all matching elements.
findelement returns a single WebElement, findelements returns a list of WebElements
findelement throws NoSuchElementException if no element is found, findelements returns an empty list
Example: driver.findElement(By.id("exampleId")) vs driver.findElements(By.className("exampleClass"))
Test scenarios for Facebook login page
Verify login with valid credentials
Verify login with invalid credentials
Verify login with empty username and password fields
Verify login with incorrect password
Verify login with incorrect username
Verify login with special characters in username and password
Verify login with locked account
Verify login with expired password
Verify login with CAPS LOCK on
Verify login with multiple logi
Regression testing ensures that new code changes do not adversely affect existing functionality, while integration testing checks if different modules work together correctly.
Regression testing focuses on retesting existing functionality after code changes
Integration testing checks if different modules work together as expected
Regression testing is usually automated to save time and effort
Integration testing may involv...
Program to remove white spaces from string without any inbuilt function
Iterate through each character in the string
Create a new string and add non-white space characters to it
Return the new string without white spaces
To validate if a checkbox is checked, use Selenium WebDriver to locate the checkbox element and then use the isSelected() method to check if it is checked.
Locate the checkbox element using Selenium WebDriver
Use the isSelected() method to check if the checkbox is checked
Assert the result to validate if the checkbox is checked
To validate the button color, inspect the CSS properties or use a color picker tool.
Inspect the CSS properties of the button element to check the color value
Use a color picker tool to sample the color of the button on the UI
Compare the sampled color with the expected blue color value
You can validate data presence in a table using Selenium by locating the table element and then searching for the desired value.
Locate the table element using Selenium WebDriver
Iterate through the rows and columns of the table to find the desired value
Use assertions to validate if the value is present in the table
No, in Java you cannot overload/override functions based on return types.
In Java, method overloading is based on the number and type of parameters, not the return type.
Method overriding is based on the method signature, which includes the method name, parameter types, and order, but not the return type.
Attempting to overload or override a method based solely on return type will result in a compilation error.
PUT is used to update or replace an entire resource, while PATCH is used to update or modify a part of a resource.
PUT is idempotent, meaning multiple identical requests will have the same effect as a single request.
PATCH is not necessarily idempotent, as multiple identical requests may have different effects.
PUT requires the client to send the entire updated resource, while PATCH only requires the client to send the sp...
Use recursion to print numbers from 1 to 1000 without using loops
Create a recursive function that takes a number as input
Print the number and call the function with the next number until 1000 is reached
Top trending discussions
Interview experience
Senior Engineer
82
salaries
| ₹5.7 L/yr - ₹20.2 L/yr |
Design Engineer
79
salaries
| ₹3 L/yr - ₹8.3 L/yr |
Senior Design Engineer
52
salaries
| ₹5 L/yr - ₹8.6 L/yr |
Lead Engineer
47
salaries
| ₹7.5 L/yr - ₹24.3 L/yr |
Assistant Manager
43
salaries
| ₹7 L/yr - ₹18 L/yr |
Grundfos Saudi Arabia
Sulzer
KSB Limited - Irrigation & Process Division (IPD)
ITT Corp