Filter interviews by
Top trending discussions
I applied via Monster and was interviewed before Oct 2020. There were 3 interview rounds.
posted on 7 Mar 2024
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 Naukri.com and was interviewed in May 2023. There were 5 interview rounds.
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();
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
I was interviewed in Oct 2024.
Interviewer gave a java program and asked output.
I applied via Campus Placement and was interviewed before Apr 2023. There were 4 interview rounds.
Basic Aptitude questions. Candidate with average knowledge can crack it.
Two programming questions were asked. Difficulty level was medium.
based on 1 interview
Interview experience
Senior Software Engineer
507
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
391
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Test Engineer
207
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
206
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Leader Engineer
93
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
Tech Mahindra