Example of a Java ZIP file folder

Today we’re going to look at a sample Example of a Java ZIP file folder. We will also compress a folder and create a zip file using the Java program. Java ZIP java.util.zip.ZipOutputStream can be used to compress a file in ZIP format. A ZIP file can carry multiple entries and ZipOutputStream uses java.util.zip.ZipEntry to […]

Java Inner Class

The inner Java class defines the body of another class. The inner class can define as private, public, secure, or with standard access, while an outer class can only have public or standard access. Therefore the Java nested classes have two types. 1. Static nested class If the nested class is static then it is […]

Java8 Core API Improvements

In this article, we will learn about the Java8 Core API Improvements. A few different API improvements that might come in handy includes Static ThreadLocal with Initial method (Provider provider) to easily create instances. The user interface improves with many standard and static modes for natural layout, inverted layout, etc. Therefore min(), max(), and sum() […]

Java 8 Features with Examples

In this article, we will take a look at Java 8 Features with Examples. Java 8 features Overview Some of the key features of Java 8 are forEach() method in the Iterable interface Standard and static methods in interfaces Functional interfaces and lambda expressions Java Stream API for bulk data operations for collections Java time […]

Begin typing your search term above and press enter to search. Press ESC to cancel.