charlsy chuks wrote:The NIO file system seems to be an interesting read. What advantages does it have over the file system that was in existence at Java 6?
It is A LOT more powerful. There are many new APIs like creating relative paths and the like. Plus you can read in files much more conveniently. Plus a lot more - as you noted, it is an interesting read.
charlsy chuks wrote:My second question is regarding string equality. With Java 7, can we now conveniently do this - string1 == string2 ?
No. The only change is the ability to use Strings in a switch. But that is a very specific use case, not general String equality.