sarah Marsh wrote:
Is Java NIO a popular mechanism nowadays?
I'm not sure how one would determine if it were popular or not. Is it used directly more than the standard java.io classes? Probably not. But the standard java.io classes use it under the covers so if one is using standard java.io, one is also using java.nio, so that would make it very popular.
sarah Marsh wrote:
Any other mechanism better than this one?
How would you define "better"? If you need the functionality that NIO provides (non-blocking sockets, for instance), I don't think there are many alternatives.