• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Are you here to take over the surface world? Because this tiny ad will stop you!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic