
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
Differences between Java 8 and Java 9?
Java 9 version has introduced new enhancements and added new features. It includes JShell, Http2Client, Java Platform Module System (JPMS), Multi-release jar files, Stack Walking API, Private methods in an interface, Process API updates, Collection API updates, Stream API improvements, and etc.
Below are the few differences between Java 8 and Java 9
- In Java 8 and earlier versions, the top-level component is the package. It places a set of related types (classes, interfaces, enums, and etc) into a group, and also contains a set of resources whereas Java 9 introduces a new component: module, which can be used to place a set of related packages into a group, and also another new component: the module descriptor, module-info.java file.
- Java 8 applications use packages as a top-level component whereas Java 9 applications use modules as a top-level component.
- Each Java 9 module has only one module with one module descriptor whereas Java 8 package doesn't build multiple modules into a single module.
Java 8:
Packages - Types (classes, enums, interfaces, etc) - Code - Data - Resources - xml - images - properties
Java 9:
Modules (Resources, Module Descriptor) - Packages - Types (classes, enums, interfaces, etc) - Code - Data - Resources - xml - images - properties
- Related Articles
- Differences between CompletableFuture and Future in Java 9?
- Differences between takewhile() and dropWhile() methods in Java 9?
- Differences between orTimeout() and completeOnTimeOut() methods in Java 9?
- Differences between Optional.ifPresentOrElse() and Optional.or() methods in Java 9?
- Differences between Jdeps and Jdeprscan tools in Java 9?
- Differences between Compact Strings and Compressed Strings in Java 9?
- Differences between & and && operators in Java.
- Differences between | and || operators in Java
- Major differences between C# and Java
- What are the differences between Java classes and Java objects?
- Differences between Collection and Collections in Java?
- Differences between HashMap and Hashtable in Java
- Differences between Interface and class in Java
- Differences between ArrayList and LinkedList in Java
- What are the differences between C++ and Java?

Advertisements