File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

On new File System NIO and String equality: Which aspects are required?

 
charlsy chuks
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I was wondering which aspects are required by the Exam council?
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?
My second question is regarding string equality. With Java 7, can we now conveniently do this - string1 == string2 ?

Charles.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
charlsy chuks
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! Interesting indeed! I wish I could lay my hands on this material.
In any case, thanks for the reply.

charles
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic