Java Program 09: Printing Words In Circular Order From Given Index

Hello Folks, This is frequently asked interview question. Problem: Suppose you have below string: “Make Selenium Easy” Where -“Make” is at position zero. -“Selenium” is at first position . -“Easy” is at second position . If I say: -zero, You need to print¬†“Make Selenium Easy”. -one, you need to print “Selenium Easy Make”. -two, you

Read More

All About getText() method: What, Why And How.

Hello Folks, In this post we will learn below topics: What is getText() method? Why we use getText() method? How we use getText() method? [Interview Question] Print all languages supported by Google. What are differences between getText() and getAttribute() methods? Let’s start: What is getText() method? getText() is a method which gets you the visible

Read More

Part 5: Waits In Selenium: What Happens When We Mix Sleep With Other Types Of Waits ?

Hello Folks, In this post we will learn about behavior of webdriver when we mix waits together. There are four types of waits in Selenium Webdriver. Those are: Thread.sleep() Implicit wait Explicit wait (It is also called as webdriver wait.) Fluent wait. (It is also called as webdriver wait. Every wait has its own significance

Read More

JAVA Program 5: Swap two integer variables without using third variable

Problem: Write a java program to swap values of two integer variables without using third variable. Solution: Java Program:

Output: Enter the 1st number: 21 Enter the 2nd number: 33 Before Swap: Value of x: 21 Value of y: 33 After Swap: Value of x: 33 Value of y: 21 #HappyCoding

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.