• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

All SCJP gurus..... HELP - -- -IO

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Congratulations to all who have passed this exam.....
I am talking my exam on 4th, and getting mad in doing the IO.
I just need information about the IO Package .
Are they asking questions from all the Streams.(like pushback linenumber, streamtokenizer etc....Long list)?
if not, then please highlight those which are coming in exam.
The reply of 3-4 person and subsequent conclusion will give a lot of idea about it.
This will help me as well as others who are finding it difficult to memorize all the methods and constructors of IO package.
Please reply immediately.....

Amit Tyagi
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Amit, while waiting for folk's response, you can read this and this threads.
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amit.I took the exam 3 months ago and it was the old one , so i cant really give u inputs regarding the new exam.But i got about 3 questions from the IO package.2 of them were regarding the basics , like Stream hierarchy and compatibility.The third one was from the RHE .I got a shock when i initially saw that one.It's there in plain sight in the RHE.I cant really post that here.But what i will advise u to do is READ EVERY LINE OF RHE.This pertains not only for IO but for all sections.
BEST OF LUCK for the exam.
------------------
Come on in !! Drinks are on the house in the Big Moose Saloon !!
[This message has been edited by Udayan Naik (edited November 01, 2000).]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Amit
Best of Luck.,
ranga..
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I took the exam last month and let me tell you IO is the one
topic where it is easy to score 100 %. All the questions were
concentrating on the constructors of important IO classes, Each
class has about 3-4 consrtructors and remembering them is easy
since stream and reader classes are just replicas. Please
gothrough my notes below and see whether it is of any help to
you.
Java.IO;
--------
1. interface DataInput
readByte
readUnsignedByte
readShort
readUnsignedShort
readChar
readInt
readLong
readBoolean
readFloat
readDouble
readLine
String readUTF
2. interface DataOutput
opposite of DataInput.

3. abstract class InputStream
ObjectInputStream
public ObjectInputStream(InputStream in)
FileInputStream
FileInputStream(String s)
FileInputStream(File f)
FileInputStream(FileDescriptir fd)
ByteArrayInputStream
public ByteArrayInputStream(byte bytearray[])
public ByteArrayInputStream(byte bytearray[], int offset, int length)
StringBufferInputStream
public StringBufferInputStream(String s) {
SequenceInputstream
PipedInputStream
FilterInputStream
FilterInputStream(InputStream in);
DataInputstream
DataInputStrem(InputStream in);
same as DataInput
readUTF(DataInputStream in);
BufferredInputStream
public BufferedInputStream(InputStream in) {
public BufferedInputStream(InputStream in, int size) {
PushBackInputStream
LineNumberInputstream
4. StreamTokenizer
5. abstract class OutputStream
FileOutputStream
FileOutputStream(String)
FileOutputStream(String s, boolean append)
FileOutputStream(File f)
FileOutputStream(FileDescriptor fd)
ByteArrayOutputStream
public ByteArrayOutputStream() //creates a buffer of size 32.
public ByteArrayOutputStream(int size)//creates the buffer of specified size.
writeTo(OutputStream out)// simillar toout.write(buffer,o,count);
byte[] toByteArray()
PipedOutputstream
FilterOutputStream
public FilterOutputStream(OutputStream);
BufferredOutputStream
public BufferedOutputStream(OutputStream in) {
public BufferedOutputStream(OutputStream in, int size) {
PrintStream
public PrintStream(OutputStream out, boolean autoFlush)
public PrintStream(OutputStream out) //default false
print,println,write methods are here.
DataOutputstream
DataOutputStream(OutputStream out);
same as Dataout.
6. RandonAccessFile
7. File
8. FileDescriptor
9. interface FilenameFilter
10. FileReader
Filereader(String s)
FileReader(File file)
FileReader(FileDescriptor fd)
FilterReader
protected FilterReader(Reader in)
FilterWriter
protected FilterWriter(Writer out)
11. FileWriter
Filereader(String s)
FileReader(String s,boolean append)
FileReader(File file)
FileReader(FileDescriptor fd)

10. FilterOutputReader
CharArrayWriter
public CharArrayWriter()//chararray of 32 bytes
public CharArrayWriter(int size);//chararray of specified bytes.
writeTo(Writer wr);
toCharArray()
void write(char c[], int off, int length);
void write(String s,int offset, int length);
BufferedWriter
public BufferedWriter(Writer,int size)
public BufferedWriter(Writer); default size = 8192.
void newLine(); //Will write a end of line.
11. FilterInputReader
BufferedReader
public BufferedReader(Reader,int size)
public BufferedReader(Reader); default size = 8192.
String readLine();
CharArrayReader
public CharArrayReader(char ch[]e)
public CharArrayReader(char c[],int offset,int length);
12. InputStreamReader
public InputStreamReader(InputStream in)
public InputStreamReader(InputStream in, String enc)

13. OutputStreamWriter
public OutputStreamWriter(OutputStream out, String enc)
public OutputStreamWriter(OutputStream out)//default character encoding.
14. Stringreader
public StringReader(String s)
15. StringWriter
public StringWriter(int initialSize)
public StringWriter()
getbuffer() returns string buffer
toString() returns string
write(String)
write(string , int,int);
16. Writer - abstract
write(String)
write(String , int, int);

10. IOException
EOFException
InterruptedIOException
FileNotFoundEception
UTFDataFormatException
These were part of my preperation for the exam. It is up to you
to see whether it reduces your fear about IO.
Thanks
V. Kishan Kumar
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kishan ,
It will be of great help !!!
Regards,
Shankar.
 
Hot dog! An advertiser loves us THIS much:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic