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
posted on 28 May 2024
Java questions basic testing concepts
posted on 6 Nov 2024
I applied via LinkedIn and was interviewed before Nov 2023. There were 3 interview rounds.
Apptitude test was quite easy to attend
Hackerrank platform was used for coding round.
Yes, I am willing to relocate for the right opportunity.
I am open to relocating for a position that aligns with my career goals and offers growth opportunities.
I have relocated in the past for job opportunities and have found it to be a positive experience.
I understand that relocation may come with challenges, but I am prepared to adapt and thrive in a new environment.
posted on 24 Mar 2021
Microservices offer benefits such as scalability, flexibility, and easier maintenance.
Scalability: Microservices can be scaled independently, allowing for better resource utilization.
Flexibility: Microservices can be developed and deployed independently, allowing for faster iteration and innovation.
Easier maintenance: Microservices are smaller and more focused, making it easier to identify and fix issues.
Improved fault...
Spring is a framework while Spring Boot is an extension of Spring.
Spring Boot provides auto-configuration and embedded servers.
Spring Boot reduces boilerplate code and simplifies application setup.
Spring Boot is opinionated and provides defaults for configuration.
Spring Boot is ideal for microservices and standalone applications.
Spring is more flexible and customizable than Spring Boot.
Yes, I have configured service registry.
I have experience with service registry tools like Consul and Eureka.
I have configured service registry for microservices architecture.
I have implemented service discovery and load balancing using service registry.
I have used service registry to manage service endpoints and metadata.
Profile registry is used to store user profiles and their preferences in a centralized location.
Profile registry is used to manage user profiles and preferences in a centralized location
It can be configured in a project by defining the schema for user profiles and preferences
Profile registry can be accessed through APIs or SDKs
It can be used to personalize user experience and provide targeted content
Examples of profile...
Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and dependencies.
Spring Boot uses an embedded server to run applications.
It provides auto-configuration for commonly used libraries and frameworks.
Spring Boot uses Spring Framework's core features like Inversion of Control (IoC) and Aspect Oriented Programming (AOP).
It uses annotations to configure and c...
We can handle the situation by implementing fault tolerance mechanisms.
Implementing circuit breakers to prevent cascading failures
Using load balancers to redirect traffic to healthy instances
Implementing retry mechanisms to handle temporary failures
Using monitoring tools to detect and alert on failures
Implementing graceful degradation to provide partial functionality
Using backups or replicas to ensure high availability
We use @RestController, @RequestMapping, @Autowired, @Service, @Repository, @Transactional, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping annotations in our Spring Boot project.
@RestController - used to define RESTful web services
@RequestMapping - used to map HTTP requests to handler methods
@Autowired - used for automatic dependency injection
@Service - used to define a service layer component
@Repository - used...
Spring Data JPA simplifies the implementation of data access layer in Spring applications.
Provides a framework for easily creating repositories and queries
Reduces boilerplate code for data access layer
Supports pagination and sorting of data
Integrates with Spring's transaction management
Example: @Repository interface UserRepository extends JpaRepository
A hash map is a data structure that uses a hash function to map keys to values in constant time.
Hash map uses an array to store key-value pairs
The hash function is used to convert the key into an index of the array
Collisions occur when two keys map to the same index, which is resolved using chaining or open addressing
Retrieving a value from a hash map involves computing the hash of the key and then looking up the corre...
Comparable is an interface used for natural ordering while Comparator is an interface used for custom ordering.
Comparable is implemented by the class itself while Comparator is implemented by a separate class.
Comparable provides a single method compareTo() while Comparator provides a single method compare().
Comparable is used for sorting elements in a collection while Comparator is used for custom sorting.
Example: Stri...
Concurrent Hash Map is a thread-safe implementation of a hash map.
It allows multiple threads to access and modify the map concurrently.
It uses a technique called lock striping to achieve high concurrency.
It is part of the java.util.concurrent package in Java.
Example: ConcurrentHashMap in Java.
I applied via Company Website and was interviewed before Jan 2021. There were 3 interview rounds.
Pumps and aerators are used to move fluids and gases respectively.
Pumps work by creating a pressure difference to move fluids from one place to another.
Aerators introduce air into liquids to increase oxygen levels and promote biological processes.
Types of pumps include centrifugal, positive displacement, and jet pumps.
Types of aerators include surface aerators, diffused aerators, and mechanical aerators.
I was interviewed before Feb 2021.
I applied via Naukri.com and was interviewed in Mar 2021. There were 5 interview rounds.
I applied via Referral and was interviewed in Mar 2021. There were 4 interview rounds.
I applied via Referral
Some of the top questions asked at the Xylem Water Solutions QA Engineer interview -
based on 1 interview
Interview experience
Senior Engineer
84
salaries
| ₹0 L/yr - ₹0 L/yr |
Design Engineer
82
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Design Engineer
53
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Manager
47
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
47
salaries
| ₹0 L/yr - ₹0 L/yr |
Grundfos Saudi Arabia
Sulzer
KSB Limited - Irrigation & Process Division (IPD)
ITT Corp