• 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

Important I/O Constructors and methods

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
could anybody point me towards a resource on the Web which has all the important I/O Constructors and methods needed for the exam neatly listed on a page or two?
It would really be a very helpful resource
Thanks in advance,
-Deb
[This message has been edited by Debabrata Deb (edited October 26, 2000).]
 
Author
Posts: 285
12
Scala IntelliJ IDE Netbeans IDE Python Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're not really expected to memorize APIs for the exam. Sure, there's a couple of bits of the more commonly used stuff, but that's about the limit of it.
What you need to know is the <em>pattern</em> that applies to this stuff. You should know that File objects represent the path-and-filename, not the file itself. You should know that there are three key classes that allow interaction with files FileInputStream FileOutputStream RandomAccessFile. You should recognize that these may be constructed using File or String arguments, and you need to know how to control FileOutputStream for appending vs overwriting. Further, you need to know the (two) possible arguments that control read/read-write access to a RandomAccessFile.
The pattern you must understand is the way that IO streams can be daisy-chained together. This involves understanding the class hierarchy of streams. Recognizing which of the IO stream classes are input, output, and which are filters is valuable but don't bother to _learn_ them all, you just need to recognize. That's about it really.
Cheers,
Simon

Originally posted by Debabrata Deb:
Hi All,
could anybody point me towards a resource on the Web which has all the important I/O Constructors and methods needed for the exam neatly listed on a page or two?
It would really be a very helpful resource
Thanks in advance,
-Deb
[This message has been edited by Debabrata Deb (edited October 26, 2000).]


 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Simon
That really makes life easier!!!
Regards
Lakshmi
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Simon,
if only I heard that a few weeks ago . Better late than never though right!!
Rgds,
Cav
 
DD
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Simon
(gulp ....it feels kinda out of the world having the person whose book I am using to prepare for SCJP answer one of my queries!!! I'll take that as a good omen )
your response has reassured me a bit as I was just about tearing my hair out trying to mug all the metods
Best Regards and happy flying
-Deb
p.s. incidentally just thought I'd add that I used the Java 2 Developers Handbook to clear my concepts in Thread ...that's pretty handy too
[This message has been edited by Debabrata Deb (edited October 26, 2000).]
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simon Roberts,
Its greate pleasure to have here.We can ask you really tough questions to get our concepts clear.Hope you will spare your valuable time for us.
Simon, Where can i get the Graphic view of API's as its very easy to visualize while programming.
If you don't mind, Can we know which plane did you buy.You are really inspiration for Us.
Regards.
Prasad
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been revising the I/O section of my tutorial recently (I even started before the recent question bank revision). It is still a work in process, but the stuff on the File class is rather good and it has a bunch of questions to test yourself with.
One thing to understand is that the RandomAccessFile is way out on its own and not related to the streams much at all.
You can see this stuff in my tutorial at
http://www.jchq.net
I/O is section 11 I think.
Note that this is very new stuff and thus may contain errors. Please let me know if you spot any.
Marcus

------------------
http://www.jchq.net Mock Exams, FAQ, Tutorial, Links, Book reviews
=================================================
Almost as good as JavaRanch
==================================================================
 
DD
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow...
Now I have Marcus replying to my query too
This is great! Good omens galore
In fact Marcus...I am using u'r tutorial too to enhance my preparation..thanks for letting us know about the enhancement as the version I have was one I had d/led around a month back
thanks again
Best Regards
-Deb
[This message has been edited by Debabrata Deb (edited October 27, 2000).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic