Imagine, you are developing Java software and suddenly you encounter errors. Where could have possibly gone wrong?
There are many types of errors that you will encounter while develo… Read More
Write a
program to create an append-only log file that can be used to log messages. The
log file should be able to grow to a certain threshold size before it is backed
up and a new log file… Read More
(Read this article on the blog)
Last updated on 2023/09/22 to include changes up to JDK 21.
This article is also available in Chinese by Alex Tan.
When Java 8 introduced Streams and Lambda… Read More
Oracle Cloud Infrastructure Java SDKOracle Cloud Infrastructure (OCI) offers a Software Development Kit (SDK) for Java, which allows you to manage a… Read More
There are 2 techniques to validate a UUID in Java.Using UUID.fromString()Using Regular ExpressionsUsing UUID.fromString():This approach is the simplest & easiest way to validate UU… Read More
page.setViewportSize()
method, we can set the page widht and height.
Signaturevoid setViewportSize(int width, int height)
Find the
below working application.
&nbs… Read More
Exception Handling In Java Programming Online Course
Exception handling is a crucial aspect of Java programming Online Course that allows you to deal with unexpected or exceptional situat… Read More
We can set
the browser locale using NewContextOptions.
ExampleNewContextOptions newContextOptions = new Browser.NewContextOptions().setLocale("de-DE");
BrowserContext browserContext = bro… Read More
Quick Summary:
Structural design patterns in Java organize classes and objects, promote code reusability, and simplify complex systems. They decouple components, manage relationships, and e… Read More
Below
snippet ignore https errors.
NewContextOptions newContextOptions = new Browser.NewContextOptions().setIgnoreHTTPSErrors(true);
Find the
below working app… Read More
Playwright.locator()
method return the locator by a selector.
SignatureLocator locator(String selector)
Locator locator(String selector, LocatorOptions options)… Read More
Big data is a term used to describe the large volumes of data that are generated by businesses and organizations every day. This data can be used to gain valuable insights and make informed… Read More
What Is Casting Upcasting and Downcasting in Java?A type cast takes a value of one type and produces the value of another type. Assigning the result… Read More
Locator.page()
method return the page reference from the locator.
SignaturePage page()
Example
String pageTitle = firstMatchingElement.page().title();… Read More