In Java, JVM (Java Virtual Machine) will always look for a specific method signature to start running an application, and that would be the public static void main (String args[]). The main() method represents the entry point of Java programs, and knowing how to use it correctly is very important. Syntax In the above application… Continue reading
Searched for ""
9z. WebDriver – Window maximize
Hiya Champs! Things don’t always work the way we want them to and that’s where the challenges take their form. With Selenium Webdriver, our testing lives are made far easier than we would expect them to be. One such situation is maximizing the browser window. Screenshots are a life saver and in order to view… Continue reading
Java Basics:Getting Started with Java
Here we will discuss some basics topics related to Java. Where to download Java. How to install Java. Setting up the Environment Variables. Our First Java Program. How to compile a Java application. How to run a Java Application. In next topic we will discuss about the difference between important terms in Java (JDK vs JRE… Continue reading
9y. WebDriver – Handling multiple windows
Hiya folks! Testing workflows involving multiple windows has become a part of life. And with Selenium WebDriver, smoothly switching between these open windows, has become a piece of cake. If you are like me, you are probably anxious to see how all this really works in our code. So, without further delay, let’s take a… Continue reading
9x. WebDriver – Handling alerts/pop-up boxes
Hiya enthusiasts! Wondering why Alert interface exists in Selenium WebDriver? Well, my friend, look no further than this post for the information you seek. We are going to talk all about popup boxes which are basically of three kinds – Alert box, Confirm box and Prompt box. As always we have our Demo Site to illustrate… Continue reading
jdk vs jre vs jvm
In order to understand JDK vs JRE vs JVM. You need to first understand each and every term. So let’s start by defining JDK (Java Development Kit), JRE (Java Runtime Environment), and JVM (Java Virtual Machine).
Contact Us
Please write to us at below address. admin – at – javabeginnerstutorial dot com
9w. WebDriver – Looping through table elements
Welcome back, Warriors! We just saw how to check if a particular data is present in a table’s specific cell with and without using XPath. Time to loop through each element and visualize the power of Selenium WebDriver. Let us go back to our Demo Site and focus on “Books & Authors” table to understand this… Continue reading
Exception Handling – The try-with-resources statement
Generally finally block is used to close all the resources (viz., file, database connection, socket or anything that should be closed after its task is done) to prevent any leaks. Sample code: public class ResourceMgt { public static void main(String[] args) { BufferedReader br = null; try { br = new BufferedReader(new FileReader("C://test.txt")); System.out.println(br.readLine()); }… Continue reading
Exception Handling – try catch Java blocks
As developers, we deal with risky situations on a daily basis. Server goes down, or there isn’t enough space to allocate objects on the heap or file is not present in the given location and so on. So every time we decide to do a risky action, we have to inform the compiler that we… Continue reading