• 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

Which one to choose (JDK 1.3 - JDK 1.4)

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If we have a question like this one :
Which constructor for FileOutputStream is correct
a. bla bla bla
b. FileOutputStream(File f, boolean append)
c. bla bla bla
d ....
In JDK 1.3 we have only this :
FileOutputStream(String name, boolean append)
Creates an output file stream to write to the file with the specified name.
In JDK 1.4 we also have :
FileOutputStream(File file, boolean append)
Creates a file output stream to write to the file represented by the specified File object.
Should i choose b or not ? (in my opinion not - maybe the test engine from Sun is not updated to keep count of new API changes so I'll stick to the old API)
What would you choose ?

Best Regards
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow that's a very good question. I would ask Sun for the definitive answer, but maybe this will help...when java 2 platform came out, for a while they offered both tests, the SCJP for the java 1 platform, and the SCJP2, and you could choose which to take.
Perhaps there will be a similar approach? Since jdk1.4 is still in beta and not released yet, I think it is safe to say that you should stick with the jdk1.2-1.3 APIs.
Just my thoughts!
Rob
reply
    Bookmark Topic Watch Topic
  • New Topic