
- Java 13 Tutorial
- Java 13 - Home
- Java 13 - Overview
- Java 13 - Environment Setup
- Java 13 Language Changes
- Java 13 - Switch Expressions
- Java 13 - Text Blocks
- Java 13 - Text Block Methods
- Java 13 - Socket API Reimplementation
- Java 13 - Miscellaneous Changes
- Java 13 JVM Changes
- Java 13 - Dynamic CDS Archive
- Java 13 - ZGC Enhancements
- Java Other Versions Tutorials
- Java Tutorial
- Java 8 Tutorial
- Java 9 Tutorial
- Java 10 Tutorial
- Java 11 Tutorial
- Java 12 Tutorial
- Java 13 Useful Resources
- Java 13 - Quick Guide
- Java 13 - Useful Resources
- Java 13 - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java 13 - Socket API Reimplementation
Java 13 have reimplemented the Java Socket API. Old Socket APIs like java.net.Socket and java.net.ServerSocket has been replaced.
PlainSocketImpl is no more in use, now the Socket API provider points to NioSocketImpl.
New implementation leverages the java.nio infrastructure for better concurrency and i/o control.
New implementation is backwards compatible with code using older implementation.
New implementation is now default with Java 12.
Old implementation can be selected by multiple ways:
Set system property jdk.net.usePlainSockteImpl to true.
Run java with -Djdk.net.usePlainSocketImpl option.
Update JDK network configuration file available in ${java.home}/conf/net.properties.
Old implementation and system property to select old implementation will be removed from future release.