Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Important I/O Constructors and methods

 
DD
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • 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).]
 
Simon Roberts
Author
Ranch Hand
Posts: 158
7
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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).]

 
lakshmi nair
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Simon
That really makes life easier!!!
Regards
Lakshmi
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
  • 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).]
 
Prasad Ballari
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • 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
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • 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
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic