• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between "java.io" and "java.nio" package

 
Girish Vasmatkar
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all,

My question is : What is the difference between these two packages? I mean what is the thing we can't do using io package that Sun had to introduce nio package? Also nio deals with channel? What is a channel and how it is different from regular streams that we use in io package?

Thanks & Regards,
--Girish--
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15711
73
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wikipedia has an article about New I/O. One of the main features it introduces is non-blocking I/O which is useful if you want to write scalable and efficient server software in Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!