Filter interviews by
posted on 5 Jan 2025
I applied via Naukri.com and was interviewed in Dec 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
The output of the code will be 'animal is created' followed by 'Dog is created'.
The code defines a class Animal with a constructor that prints 'animal is created'.
It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.
In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.
The output will be 'HelloThere'
Concatenation of 'Hello' and 'There' results in 'HelloThere'
The final string is printed using System.out.println()
The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.
StringBuffer is mutable, so the original 'Hello' string can be modified
The append() method adds the specified string to the end of the buffer
The final output will be 'HelloThere'
Option a is valid, option b is valid, option c is invalid.
Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.
Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.
Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ
Sort input array of strings in descending order without using inbuilt functions
Iterate through the array and compare each element with the rest to find the largest element
Swap the largest element with the first element, then repeat the process for the remaining elements
Continue this process until the array is sorted in descending order
findElement returns the first matching element on the page, while findElements returns a list of all matching elements.
findElement returns a single WebElement matching the locator provided
findElements returns a list of WebElements matching the locator provided
findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list
getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows
getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles
getwindowhandle is used to switch between windows in Selenium WebDriver
Output type of getwindowhandle is String, while output type of getwindowhandles() is Set
String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.
String is immutable, meaning its value cannot be changed once it is created.
StringBuilder is mutable, allowing for modifications to the string without creating a new object.
StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.
Example: String str = "Hello"; StringBuil
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Start at the beginning of the array and compare the first two elements. If the first element is greater than the second, swap them.
Continue comparing adjacent elements and swapping them if necessary until the end of the array is reached.
Repeat this process for each ...
Custom assertions in Selenium allow for creating personalized validation checks in test automation scripts.
Custom assertions can be created by extending the Assert class in Selenium.
They can be used to validate specific conditions or elements on a web page.
Custom assertions can improve test readability and maintainability by encapsulating complex validation logic.
Example: Creating a custom assertion to verify the prese
I applied via Referral and was interviewed in May 2024. There was 1 interview round.
I like the constant learning and problem-solving in IT, but dislike the long hours and high stress levels.
Like: Constant learning opportunities
Like: Problem-solving challenges
Dislike: Long working hours
Dislike: High stress levels
I applied via LinkedIn and was interviewed before Jan 2024. There were 2 interview rounds.
Counting letters in a word
I applied via Recruitment Consulltant and was interviewed in Apr 2024. There was 1 interview round.
throw is used to throw an exception in Java, while throws is used to declare an exception that a method might throw.
throw is used to explicitly throw an exception within a method.
throws is used in the method signature to declare that the method might throw a specific type of exception.
Example: throw new Exception("An error occurred!");
Example: public void method() throws IOException {}
Handling multiple windows in Selenium can be achieved using window handles.
Use getWindowHandles() method to get all window handles
Switch between windows using switchTo().window() method
Perform actions on each window as needed
204 and 400 are HTTP response codes in REST APIs indicating success and client error, respectively.
204 response code indicates that the server has successfully fulfilled the request and there is no content to send in the response.
400 response code indicates that the server could not understand the request due to bad syntax or missing required parameters.
Example: If a client sends a request to update a resource and the ...
Count the number of upper case and lower case letters in a string using coding.
Iterate through each character in the string and check if it is upper case or lower case using built-in functions or ASCII values.
Keep track of the count of upper case and lower case letters separately.
Return the counts of upper case and lower case letters.
I applied via campus placement at Vellore Institute of Technology (VIT) and was interviewed in May 2024. There were 2 interview rounds.
Practice quantitative aptitude questions by RS Agarwal
Multiple choice questions and answers given
Yes, I am open to relocating for the right opportunity.
I am willing to relocate for the right job opportunity that aligns with my career goals.
I am open to exploring new locations and experiencing different cultures.
I understand the importance of being flexible and adaptable in the field of automation engineering.
I have relocated for previous job opportunities and have successfully adjusted to new environments.
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Tata Power
Exide Industries
Amara Raja Energy & Mobility
Suzlon Group