Filter interviews by
I applied via Naukri.com and was interviewed in Feb 2021. There were 5 interview rounds.
I applied via LinkedIn and was interviewed in Nov 2022. There were 3 interview rounds.
The Collection Framework is a unified architecture for representing and manipulating collections in Java.
It provides interfaces like List, Set, Queue, etc. for storing and manipulating collections of objects.
It also provides concrete classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.
It supports algorithms like sorting, searching, and shuffling on collections.
It is a part of the Java C...
Program to reverse a string
Use a loop to iterate through the string and append each character to a new string in reverse order
Alternatively, use built-in string reversal functions in some programming languages
Program to find a missing number in Arrays
Sort the array and iterate to find the missing number
Use XOR operation to find the missing number
Calculate the sum of all numbers and subtract from the sum of expected numbers to find the missing number
An explicit constructor is a constructor that is defined with the 'explicit' keyword.
It is used to prevent implicit conversions from the constructor's parameter type to the class type.
It requires the constructor to be called explicitly with the class name and constructor arguments.
It is commonly used to avoid unexpected type conversions and improve code clarity.
An abstract class is a class that cannot be instantiated and is used as a base class for other classes.
An abstract class can have abstract and non-abstract methods.
Abstract methods have no implementation and must be implemented by the subclass.
A class can only extend one abstract class but can implement multiple interfaces.
Abstract classes are used to provide a common interface for a group of related classes.
Example: a...
Constructor can be declared static or non-static depending on the use case.
If a constructor is declared static, it means it can be called without creating an instance of the class.
Static constructors are used to initialize static fields of the class.
Non-static constructors are used to initialize instance fields of the class.
If a class has both static and non-static constructors, the non-static constructor is called whe
An interface in Java is a collection of abstract methods and constants that can be implemented by a class.
An interface is declared using the interface keyword.
It can be implemented by any class using the implements keyword.
All methods in an interface are implicitly public and abstract.
Interfaces can also contain constants, which are implicitly public, static, and final.
Interfaces are used to achieve abstraction and pro...
Locators are used to identify web elements in Selenium.
Locators are used to find and interact with web elements on a web page.
There are several types of locators in Selenium, including ID, name, class name, tag name, link text, and partial link text.
For example, to find an element with the ID 'username', you would use the ID locator: driver.findElement(By.id('username'));
Relative XPath is a way to locate elements in XML or HTML documents based on their position relative to other elements.
Relative XPath uses the relationships between elements to navigate the document structure.
It is more flexible than absolute XPath as it adapts to changes in the document's structure.
Relative XPath expressions start with a reference to an element and then use various axes and predicates to locate the de...
To find a one element Xpath in Amazon.com
Inspect the element in the browser
Right-click on the element and select 'Copy XPath'
Use the copied XPath in your code
Selenium automation can control Chrome browser capabilities such as handling pop-ups, cookies, and browser settings.
Selenium can handle pop-ups and alerts using the switchTo() method
Cookies can be managed using the addCookie() and deleteCookie() methods
Browser settings can be modified using the ChromeOptions class
Examples: disabling images, setting the browser window size, and using headless mode
Assistant Manager
2.1k
salaries
| ₹3 L/yr - ₹13 L/yr |
Network Engineer
1.5k
salaries
| ₹1.9 L/yr - ₹6.5 L/yr |
Territory Sales Manager
1.5k
salaries
| ₹2.9 L/yr - ₹11 L/yr |
Manager
1.4k
salaries
| ₹6.3 L/yr - ₹23 L/yr |
Senior Executive
1.2k
salaries
| ₹2.1 L/yr - ₹9.6 L/yr |
Jio
Vodafone Idea
TCS
Infosys