Category: Java

Selenium WebDriver with Java Interview Questions – Part 2

Table of Contents 1. What is the difference between Assert and Verify. 2. What are Hard and Soft Asserts in selenium? 3. What is the Action Class in Selenium? 4. How can I switch to Multiple Windows in Selenium? 5. How to handle alerts pop up in Selenium? 6. Explain Javascript Executor in Selenium. 7. […]

Selenium WebDriver with Java Interview Questions – Part 1

Table of Contents 1. What is Automation Testing? 2. What is Selenium Webdriver? 3. I have a use case that I need to execute some of the tests only once, I don’t have to execute these tests in the future, Should I use selenium Webdriver for this? 4. Explain Selenium Webdriver Architecture with Selenium 4. […]

Top SDET Interview Questions in Java – Part 5

Table of Contents 1. Write a program to sort ArrayList using Comparable and Comparator 2. I have arrayList like [Test1, Test2, Test3, Test4, Test5] Write a Program to replace the “Test2” with string “ReplacedTest” 3. Write a Java program to insert the specified element at the end of a linked list 4. Write a program […]

Top SDET Interview Questions in Java – Part 4

Table of Contents 1. What is Typecasting explain with small code snippet? 2. Write a program to reverse a string  without using string.reverse() method 3. Write a program to calculate the occurrences of each character in the string 4. Write a program to check the magic number 5. Write a program to check if two […]

Top SDET Interview Questions in Java – Part 3

table of contents 1. How can we achieve Pass by value and pass by reference in Java? 2. Explain Different types of interfaces in the Collection framework 3. What is the difference between Array List and LinkedList? Which is better explain? 4. What is the difference between List and Set? 5. What is the difference […]

Top SDET Interview Questions in Java – Part 2

table of contents 1. How to make class read-only explain briefly? 2. What is Object Class explain? 3. What is the difference between Mutable and Immutable Object? Explain String and StringBuilder in the same context 4. What are the different types of exceptions in java? 5. Can we have a Single Catch Block and Multiple […]

Top SDET Interview Questions in Java – Part 1

This is Part 1 in the series of SDET Interview questions and answers in Java table of contents This is Part 1 in the series of SDET Interview questions and answers in Java 1. What is the difference between JDK, JRE, and JVM? 2. What are the different types of constructors in Java? And How […]

Top 25 Java Programming Interview Questions – Part 2

Table of Contents Question 13: Write a Java Program to generate Output “aabbbcccc” with the input “a2b3c4” Question 14: Write a Java Program to print the product of an array except self? Question 15: Write a Java Program to reverse a number using Stack. Question 16:  Write a Java Program to print the second largest […]

25 Java Programming Interview Questions – Part 1

Table of Contents Question 1: Write a Java Program to reverse a String. Question 2:  Write a Java Program to swap two given Strings Question 3: Write a Java Program to print the Fibonacci Series. Question 4: Write a Java Program to check if a number is Armstrong number or not. Question 5: Write a […]

Queue in Java

table of contents What is Queue interface and what are the characteristics of Queue in JAVA? How to add element to a Queue? How do we remove element from a Queue? How do we find head element of a queue? How to iterate all elements of a Queue? What is Queue interface and what are […]