Java 17 Recipes
A Problem-Solution Approach
Chapter
JSON is one of the most widely used forms of media for sending communications between two or more machines. In expanded form, it stands for JavaScript Object Notation. It is very easy to work with JSON data by...
Chapter
Since Java 9, newer versions of Java follow every six months, but this is a long-term support (LTS). It receives support for at least eight years and surely until the next LTS version in 2023. Each release of ...
Chapter
Email notification is an integral part of today’s enterprise systems. Java enables email notification by offering JavaMail API. Using this API, you can send email communications in response to an event (e.g., ...
Chapter
Today, writing an application that does not communicate over the Internet in some fashion is rare. From sending data to another machine to scra** information off remote web pages, networking plays an integra...
Chapter
Exceptions are a way of describing exceptional circumstances within a program. They are an indicator that something unexpected (exceptional) has occurred. For that reason, exceptions are efficient at interrupt...
Chapter
The Java platform provides a rich set of internationalization features to help you create applications that can be used across the world. The platform provides the means to localize your applications, format d...
Chapter
This chapter helps you understand how to perform some of the most basic operations with numbers and dates that play a significant role in many applications. You learn to work with date, time, and time zone dat...
Chapter
A convenient way to create anonymous functions is using the lambda expressions using an expression or series of statements. Lambda expressions are built on functional interfaces, which contain a single abstract m...
Chapter
The file and network I/O have evolved over the years into a much better framework for handling files, network scalability, and ease of use. Java can monitor folders, access OS-dependent methods, and create sca...
Chapter
Concurrency is the ability of a program to execute different (or the same) instructions at the same time. A concurrent program can be split up and run on multiple CPUs. By making concurrent programs, you take adv...
Chapter
Almost any nontrivial application contains a database of some sort. Some applications use an in-memory database, while others use a traditional relational database management system (RDBMS). Whatever the case,...
Book
Chapter
This chapter presents a handful of recipes to help programmers who are new to the Java language and those with experience in other languages become accustomed to Java 17. You learn to install Java and configur...
Chapter
This chapter focuses on some of the most common String methods and techniques for working with String objects. In fact, they are one of the most used data types in any programming language. They can be used to ob...
Chapter
Object-oriented programs consist of many different pieces of code that all work together in unison. Rather than write a program that contains a long list of statements and commands, an object-oriented philosop...
Chapter
Applications use data structures to store data that can be utilized throughout the lifetime of an application instance. The Java language contains several data structures known as collection types, and they ca...
Chapter
Java development is not done on the desktop alone. Nowadays, web applications and apps can be considered the cornerstone of modern technology in private and government organizations. In fact, by interacting wi...
Book
Book
Using JSP, JSF, MySQL, and Apache Tomcat for Building Java Web Applications
Chapter
In the first two chapters, you learned a large portion of JSP’s components through brief examples. In this chapter, I will tell you how everything fits together in complex applications.