Tag: java

Java Interview Question – Explain public static void main(String[] args)

This is an important interview question in Java and mainly asked to Freshers. I will try to explain my best it here. A Java program has a starting point of execution with a predefined signature of main method in a class. Method signature of main method is given below:-

This could be also written […]

Frequently Asked Java Programs 31 – Java Program to Find Common Characters in Two Given Strings

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a java program Find Common Characters in Two Given Strings. Problem Statement:- String s1= “ABCDEF” String s2= “DEFXYZ” Output: DEF Solution:- This problem can be solved with or without using collection concepts in Java. I […]

Part 2: Waits in Selenium: Implicit Wait

Hello Folks, In last post, we have learnt about Thread.sleep() method. In this post we will learn: What is implicit wait? How to use implicit wait? What is behavior of implicit wait when element is found before specified time? What is behavior of implicit wait when element is not found and specified wait time expires? […]

All Ways Of Refreshing a Webapge In Selenium

Hello folks, We have seen in last post which explains  how can we load a URL without using any get() and navigate() methods. In this post we will learn in how many ways we can refresh a web page. It is also frequently asked interview question. During developing automation test scripts, we need to refresh […]

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.