Filter interviews by
Clear (1)
I applied via Naukri.com and was interviewed in Jun 2022. There were 2 interview rounds.
List is an ordered collection of elements while Set is an unordered collection of unique elements.
List allows duplicate elements while Set does not.
List maintains the order of elements while Set does not.
List is implemented using an array while Set is implemented using a hash table.
Example: List - [1, 2, 3, 3, 4], Set - {1, 2, 3, 4}
To get data from a file in Selenium, we can use Java IO classes and read the file content.
Create a File object with the file path
Create a FileReader object with the File object
Create a BufferedReader object with the FileReader object
Use the BufferedReader object to read the file content line by line
Close the BufferedReader object
Alpha testing and beta testing are two types of software testing performed before releasing the software to the public.
Alpha testing is performed by the developers in-house, before releasing the software to external testers.
Beta testing is performed by external testers, after the software has been released to a limited audience.
Alpha testing is focused on identifying bugs and issues in the software, while beta testing ...
A test case can be excluded from execution by using tags or annotations.
Add a tag or annotation to the test case with a specific value
Configure the test runner to exclude test cases with that tag or annotation
Use conditional statements in the test code to skip the test case based on certain conditions
Test case can be executed multiple times using automation tools or by manually running the test case.
Use automation tools like Selenium or Appium to execute test cases multiple times.
Create a loop in the automation script to execute the test case multiple times.
Manually execute the test case multiple times by following the steps in the test case document.
Use data-driven testing to execute the same test case with differ...
I applied via Approached by Company and was interviewed in Feb 2022. There were 3 interview rounds.
I applied via Approached by Company and was interviewed before Jun 2022. There were 3 interview rounds.
Top trending discussions
I applied via Monster and was interviewed before Oct 2020. There were 3 interview rounds.
Core Java is the fundamental part of Java programming language.
Core Java includes basic concepts like data types, control structures, and object-oriented programming.
It is used to develop standalone applications, web applications, and mobile applications.
Examples of Core Java libraries include java.lang, java.util, and java.io.
Core Java is a prerequisite for learning advanced Java concepts like Spring and Hibernate.
posted on 7 Mar 2024
I applied via LinkedIn and was interviewed in Sep 2023. There were 4 interview rounds.
Work on jva concepts
Array and link list questions.
posted on 29 Nov 2024
I was interviewed in May 2024.
Java program to create and manipulate an array of strings
Declare and initialize an array of strings: String[] arrayName = new String[] {"string1", "string2", "string3"};
Access elements in the array using index: String element = arrayName[index];
Modify elements in the array: arrayName[index] = "newString";
Iterate through the array using a loop: for(String element : arrayName) { // do something with element }
Java program to manipulate an array of strings
Use a for loop to iterate through the array of strings
Use string methods like substring, indexOf, or replace to manipulate the strings
Use StringBuilder for efficient string manipulation
I applied via Referral and was interviewed in Dec 2024. There was 1 interview round.
Extract the 14 characters before @ in a given URL
Use string manipulation to extract characters before @ symbol
Consider edge cases like no @ symbol or less than 14 characters before @
Handle special characters like %20 or %40
Regex pattern to match at least one capital letter, one small case letter, one digit, and one special character.
Use the regex pattern: (?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])
Example: Password@123
Code to output each word with vowel count in a given string.
Split the string into words using space as delimiter
Iterate through each word and count the number of vowels
Store the word and its vowel count in an array of strings
To find the maximum diagonal sum in a 2X2 Matrix, sum the elements of the main diagonal and the opposite diagonal.
Sum the elements of the main diagonal (top left to bottom right) and the opposite diagonal (top right to bottom left).
Compare the sums of both diagonals and return the maximum sum.
Example: For a 2X2 Matrix [[1, 2], [3, 4]], the main diagonal sum is 1+4=5 and the opposite diagonal sum is 2+3=5. The maximum d
To find the selected option text from a dropdown in Selenium, you can use the getFirstSelectedOption() method.
Use the Select class to work with dropdown elements in Selenium
Use the getFirstSelectedOption() method to get the selected option
Retrieve the text of the selected option using getText() method
Find duplicates in a dropdown along with their occurrence/frequency.
Iterate through the dropdown options and store each option in a hashmap with its frequency.
Identify options with frequency greater than 1 as duplicates.
Return the duplicates along with their occurrence/frequency.
Resolve merge conflicts in git by using git commands and tools.
Pull the latest changes from the remote repository
Use 'git status' to identify conflicting files
Open the conflicting files and manually resolve the conflicts
Add the resolved files to the staging area using 'git add'
Commit the changes with a merge message using 'git commit'
Use git cherry-pick command to bring specific commit changes to your branch.
Identify the commit hash of the specific changes you want to bring to your branch.
Checkout to the branch where you want to apply the changes.
Use 'git cherry-pick <commit-hash>' command to apply the specific commit changes to your branch.
To switch to a frame in Selenium, use driver.switchTo().frame() method. To come out of a frame, use driver.switchTo().defaultContent() method.
Use driver.switchTo().frame() method to switch to a frame
Use driver.switchTo().defaultContent() method to come out of a frame
Example: driver.switchTo().frame("frameName");
Example: driver.switchTo().defaultContent();
based on 3 interviews
Interview experience
based on 10 reviews
Rating in categories
Senior Engineer
417
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
334
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
286
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
260
salaries
| ₹0 L/yr - ₹0 L/yr |
Engineer
149
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech