You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Java.nio** package is initially started to replace java.io package(Non-blocking io), but hasn't taken off until second version of nio API in Java 7 which is called nio2.
3
-
NIO2 actually intended to replace java.io.File class and its related interactions.
3
+
``java.nio`` package is initially started to replace ``java.io`` package(Non-blocking io), however it hasn't taken off until the second version of nio API in Java 7 which is called **nio2**. **NIO2** actually intended to replace ``java.io.File`` class and its related interactions.
4
+
5
+
-``java.nio.file.Path`` refers to resource on filesystem which doesn't have to exist. And most of its operations don't require it too.
6
+
-``java.nio.file.Paths`` is a factory/helper class for ``Path``
4
7
5
-
Paths - factory/helper class for Path
6
-
Path refers to resource on filesystem which doesn't have to exist. And most of its operations doesn't require too.
7
8
8
-
NIO2 API has following advantages over IO API:
9
+
**NIO2** API has following advantages over old **IO** API:
0 commit comments