Sunday, November 13, 2011
byte stream
Input and output stream are byte stream.eg:images ,sounds.
2 types:
1.ObjectInputStream
2.ObjectOutputStram
2 types:
1.ObjectInputStream
2.ObjectOutputStram
System.err
System is a class in java.lang package and contain a predefined stream variable err.
refers to standard error stream which is also console
refers to standard error stream which is also console
it is object of type PrintStream.
it is a byte stream.
System.in
System is a class in java.lang package and has a predefined stream variable in.
refers to standard input that is keyboard.
it is an object of type input stream.
it is a byte streamrefers to standard input that is keyboard.
it is an object of type input stream.
System.out
System is the class name and out is a predefined stream variable.
refers to standard output stream which is console
it is object of type PrintStream.
it is a byte stream.
refers to standard output stream which is console
it is object of type PrintStream.
it is a byte stream.
stream
java provide input and output through stream.
Streams are ordered sequence of data that have a source or destination. two categories
1.character stream
2.byte stream
Streams are ordered sequence of data that have a source or destination. two categories
1.character stream
2.byte stream
Subscribe to:
Posts (Atom)