JAVA Programs Asked in Selenium Interview :-

Output:

Note:  if the number is divisible by 2 then it is even

Output:

Output:

Note: Every fourth year is Leap Year.

Output:

Note: A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed.

Output:

Note: A factorial is a function that multiplies a number by every number below it.

For example: 5!= 5*4*3*2*1=120.

Output:

Output:

Note: Square the radius and multiply by pi to find the area of the circle.

Output:

Output:

Note: The Fibonacci sequence is a set of numbers that starts with a one or a zero, followed by a one, and proceeds based on the rule that each number (called a Fibonacci number) is equal to the sum of the preceding two numbers. … F (0) = 0, 1, 1, 2, 3, 5, 8, 13, 21, 34…

Output:

Output:

Note: A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Output:

Output:

Output:

Note: The factorial of a number is defined is the product of natural numbers from one to that particular number.

Output:

Output:

Output:

Output:

Output:

Output:

Output:

Output:

Output:

Output:

*

**

***

****

*****

Output:

Output:

12345

1234

123

12

1

Output:

Output:

Output:

Note: Armstrong number is a number that is equal to the sum of cubes of its digits.

e.g:-  153 = (1*1*1)+(5*5*5)+(3*3*3)

Output:

  • Java and Selenium are the best automation tools for QA. And these skills are essential for each QA engineer involved in test automation.
  • Therefore, Above programs, we are presenting a set of Java coding programs to help test automation developers during job interviews.

 

java programs asked in selenium interview access modifier in java, list of even numbers,compare two numbers using if-else,determine year is leap year or not,palindrome number,factorial of a number,pyramid of numbers using for loops,calculate area of the circle, array list,fibonacci series,calculate sum of numbers in array,prime numbers between 1 to given num,reverse string without reverse function,nested switch,factorial of a number using recursion,calculate ‘digit sum’,count the number of words in a string,display invert triangle,display multiplication table,find whether number is prime or not,generate random number in java,method overloading,odd or even number,print upto given number,pyramid of stars using nested for loops,reverse a number, reversed pyramid using for loop, static and non-static in java, swap two values, whether given no is armstrong or not java programming questions for testers and commonly asked java programs in selenium interview and java programs asked in interview for automation tester and java programs for automation testing interview

JAVA Programs Asked in Selenium Interview JAVA Programs Asked in Selenium Interview JAVA Programs Asked in Selenium Interview