Java Program 13: Java Program To Find If Given Numbers Are Coprime

Problem: Write a Java program to find if given two numbers are coprime. Solution: Definition of coprime: As per Wikipedia, In number theory, two integers a and b are said to be relatively prime, mutually prime, or coprime (also written co-prime) if the only positive integer (factor) that divides both of them is 1. Consequently, any prime number that divides one does not divide the other. This is equivalent […]

Frequently Asked Java Program 12: Java Program To Find Divisors Of Given Number

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a Java program to Find Divisors Of Given Number. Problem: Write a JAVA program to find the divisors of a given number. Solution: Divisor is a number that divides  another number without a reminder or a number […]

List Of Frequently Asked Manual Testing Interview Questions( 200+)….

Hello Professionals, I will post a list of frequently asked question on Manual testing in interviews. It will help for both freshers and experienced people. As of now, I will not post answers of questions but in coming days, I will. Define software testing. What are the types of software testing? What is in mind […]

Handling ElementNotVisibleException And Element Is Not Clickable Exception In Selenium

Hello Folks, In this post, we will learn how to handle “ElementNotVisibleException ” and “Element is not clickable exceptions”. While running Selenium scripts, sometimes we face below exceptions: “org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (242, 845). Other element would receive the click” “org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be […]

How To Locate Web Element Which Has Multiple Class Names

Hello Folks, Recently I learnt new thing so just wanted to share with you. We will see how to locate web elements which has multiple class names as html attribute. See carefully below html code: You will see “CLASS” attribute which has value as “required_field cityPadRight ac_input“. Actually above web element has multiple class name […]

Handling Calendar Which Has Year & Month As Drop down In Selenium

Hello Folks, We have seen Handling of calendar of one type in last post. Adding to it, in this post we will see handling of calendar which has year and month as drop-downs. A calendar which has year and month has drop-downs looks as below: User needs to select year followed by month and day. This […]

Frequently Asked Java Program 11: Find Position Of Letter In Alphabet

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a Java program to Find Position Of Letter In Alphabet. Problem: Accept a letter from user and print position of input letter in alphabet. Example: A has 1st position in alphabet. B has 2nd position in […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.