Java is a widely-used programming language that has been around since the mid-1990s. Over the years, it has undergone several updates and revisions, with the latest version being Java 17. Learning Java can be a daunting task, especially for beginners who are just starting out. However, with the right resources, it is possible to learn … Read More “Java | Recommended books and resources for learning Java” »
Tag: java
Testing is an essential part of software development as it helps to ensure the quality of the application by detecting and resolving issues before the product reaches the end user. In Java programming, there are several testing frameworks available that help to automate the testing process and make it more efficient. Two of the most … Read More “Java | Overview of testing frameworks (JUnit, TestNG)” »
Java is one of the most popular programming languages and has a vast array of frameworks and tools available for developers. Three of the most widely used Java frameworks are Spring, Hibernate, and Struts. In this article, we’ll provide an overview of each framework and how they can be used in Java development. Spring Framework … Read More “Java | Overview of popular Java frameworks (Spring, Hibernate, Struts)” »
Java 12 introduced a new feature called Switch Expressions, which allows developers to use switch as an expression that returns a value, rather than just a statement. In this article, we’ll explore this new feature and see how it can be useful in Java programming. Switch expressions in Java can be written in two forms, … Read More “Java | Switch expressions” »
Java’s HTTP client API was introduced in Java 11 as a replacement for the legacy HttpURLConnection API. The new API provides a more modern, easy-to-use interface for sending HTTP requests and handling responses. Creating an HTTP Client To use the HTTP client API, you first need to create an instance of the HttpClient class. Here’s … Read More “Java | HTTP client API” »
ava 10 introduced a new method called Collectors.toUnmodifiableList() that returns an unmodifiable List which is a view over the original List. In this article, we will explore the toUnmodifiableList() method and how it can be used in Java programming. Introduction to Collectors.toUnmodifiableList() Method The Collectors.toUnmodifiableList() method returns an unmodifiable List that is a view over … Read More “Java | Collectors.toUnmodifiableList() method” »
In Java 8, interfaces were enhanced with the addition of default and static methods. These methods were introduced to provide additional functionality to interfaces without breaking the existing code. In this article, we will discuss default and static methods in interfaces with examples. Default Methods Before Java 8, interfaces could only contain abstract methods, which … Read More “Java | Default and static methods in interfaces” »
Introduction to the Optional Class In Java, the Optional class is a container object used to represent a value that may or may not be present. It is a class that provides a more concise and safer way to handle null values in Java. This class was introduced in Java 8 and has become an … Read More “Java | Optional class and its use cases” »
In Java 8, the Stream API was introduced as a powerful and efficient way to work with collections of data. Streams provide a functional way to perform bulk operations on a collection of data and can be used to process large datasets efficiently. In this article, we will cover the basics of streams and pipelines … Read More “Java | Streams and pipelines” »
In Java 8, the introduction of lambda expressions and functional interfaces revolutionized the way we write code. Lambda expressions allow us to write concise and readable code while functional interfaces provide the necessary type information for lambda expressions. In this article, we’ll dive into lambdas and functional interfaces and explore how they work in Java. … Read More “Java | Lambdas and functional interfaces” »