Search

Java & Selenium Automation Interview Questions

1.Diff between method overloading and overriding

2.access modifiers

3.diff between list and set

4.explain about hash map

5.What are the restricted concepts of method over riding

6.What are the list of new features of java 1.8 compared to 1.7

7.In list of numbers in array , how to get second highest value

8.how to remove duplicate elements from hash map if had 1000 plus values

9.what is immutable in java

10.what is immutable class in strings

11.Internal working system of hash map

12. String S="TCS"; S=S+"TC"; what is output

13. streams in java

14. Lambda expressions in java

15.what is serialization and deserializaion

16.if had two class , if object created for second calls and call through object which class constructor called first

17.in selenium how to send data into text field without using sendkeys

18.Elements in bug report

19.Blackbox testing techniques

20.TestNG framework

21.when are going stop testing

22.Micro services

23.Java collections

24.broken links

25.how to use java concepts in selenium frameworks

26.Tags in BDD framework

27.how to restore Git Merge branch

28.Jenkins Jobs running process

29.how to print a sentence in reverse in java

30.different wait statements in selenium

31.how to handle multiple frames in selenium

32.how to handle multiple windows in selenium

33.how to do push activity in git

34.What are the OOPS concepts in java

35.How we will use Oops concepts in selenium

36.Explain project structure and parameters passing in selenium frames in current project

37.Explain about Maven 

38.How to Select Dropdown values in selenium

39.How to print dropdown values in selenium

40.How to work with Encoding Password

41.How to read data from PDF files through selenium

42.How to read data from a text files through selenium

43.Explain BDD framework in Selenium

44.How to do Parallel execution from selenium

45.How to run failed Test cases from framework

46.Explain API Automation with Post and Get requests using Rest Assured

47.How can we use method overloading in Cucumber Framework

48.Sample Java Program to withdraw money from ATM and deposit

49.Streams in Java

50.Methods in Java Object class

51.Json files using API Automation for Test Data

52.Protocols in API Automation

53.Authentications in API Automation

54.How can we share our APIs to another Persons in Office

55.what if class/method make it as Abstract

56.what if method defined as Final

57.what is the difference between Throws and Throw keyword

58.what are the new features introduced in Interface

59.In Cucumber Framework what are the format methods using for Hash Mapp & Hash Set, Hash Table in Steps and Features files.

60.How to handle dynamic elements using Selenium Locators

61.How to handle mouse events

62.what are the access modifiers and how can we use

63.how can we use data in two packages using protected modifier

64.what is the difference between the Comparable & Comparator

65. Data Structures

66. What is the Difference between the Click and Submit methods in selenium

67. Reverse A Sentence using Java Strings

68. Print a duplicate letters using java Strings

69. Print a duplicate letters using java Collections MAPs

70. write a java program to print any intergers of array with left shift and right shift operations based on given number in array

71. print a numbers in sorting order which is there in integer array

1. Reverse a String:
Write a Java program to reverse a given string.
2. Find the Largest Element in an Array:
Find and print the largest element in an array.
3. Check for Palindrome:
Determine if a given string is a palindrome (reads the same backward as forward).
4. Factorial Calculation:
Write a function to calculate the factorial of a number.
5. Fibonacci Series:
Generate the first n numbers in the Fibonacci sequence.
6. Check for Prime Number:
Write a program to check if a given number is prime.
7. String Anagrams:
Determine if two strings are anagrams of each other.

8. Array Sorting:
Implement sorting algorithms like bubble sort, merge sort, or quicksort.

9. Binary Search:
Implement a binary search algorithm to find an element in a sorted array.

10. Duplicate Elements in an Array:
Find and print duplicate elements in an array.

11. Linked List Reversal:
Reverse a singly-linked list.

12. Matrix Operations:
Perform matrix operations like addition, multiplication, or transpose.

13. Implement a Stack:
Create a stack data structure and implement basic operations (push, pop).

14. Implement a Queue:
Create a queue data structure and implement basic operations (enqueue, dequeue).

15. Inheritance and Polymorphism:
Implement a class hierarchy with inheritance and demonstrate polymorphism.

16. Exception Handling:
Write code that demonstrates the use of try-catch blocks to handle exceptions.
17. File I/O:
Read from and write to a file using Java's file I/O capabilities.
18. Multithreading:
Create a simple multithreaded program and demonstrate thread synchronization.
19. Lambda Expressions:
Use lambda expressions to implement functional interfaces.
20. Recursive Algorithms:
Solve a problem using recursion, such as computing the factorial or Fibonacci sequence.


EPAM Systems Interview Questions for
hashtag
QA /
hashtag
SDET role (Exp: 8+ yrs)
1. How to handle cookies in selenium?
2. Can we create static class? What is static keyword?
3. what is clean code?
4. Path and query parameter what are these and which is optional?
5. Java 8 streams?
6. Background keyword, Scenario Outline, Scenario, Data Table?
7. Where do you run your test cases?
8. Which version of selenium you have used
9. Window A,B,C,D, How to switch to C and close it?
10. How to handle dropdown?(By select class and alternate is by using findElements?
11. Write a code using HashMap
Brian – 21
Lee – 22
Cathe – 45
Using key and value and find the average?
12. Multiple catch block
Try{}
Catch(exception e){
Syso(A);
Catch(Arithmetic exception)
Syso(B);
13. The logic of parent and child exception
14. When to use abstract class and when to use interface
15. Why can’t we create the framework with all static methods?
16. Int arr 1,2,3,4,5,7,8,9, Skip 3 and all elements after 3 and then skip 7 and then give some
17. Implement hashmap in the interface and use it in the main
18. Remove redundancy for a string.

 1.diff between method overloading and over riding

2.access modifyiers

3.diff between list and set

4.explain about hash map

5.What are the restricted concepts of method over riding

6.What are the list of new features of java 1.8 compared to 1.7

7.in list of numbers in array , how to get second highest value

8.how to remove duplicate elements from hash map if had 1000 plus values

9.what is immutable in java

10.what is immutable class in strings

11.Internal working system of hash map

12. String S="TCS"; S=S+"TC"; what is output

13. streams in java

14. Lambda expressions in java

15.what is serialization and deserializaion

16.if had two class , if object created for second calls and call through object which class constructor called first

17.in selenium how to send data into text field without using sendkeys

18.Elements in bug report

19.Blackbox testing techniques

20.TestNG framework

21.when are going stop testing

22.Micro services

23.Java collections

24.broken links

25.how to use java concepts in selenium frameworks

26.Tags in BDD framework

27.how to restore Git Merge branch

28.Jenkins Jobs running process

29.how to print a sentence in reverse in java

30.different wait statements in selenium

31.how to handle multiple frames in selenium

32.how to handle multiple windows in selenium

33.how to do push activity in git

34.What are the OOPS concepts in java

35.How we will use Oops concepts in selenium

36.Explain project structure and parameters passing in selenium frames in current project

37.Explain about Maven 

38.How to Select Dropdown values in selenium

39.How to print dropdown values in selenium

40.How to work with Encoding Password