reader/writer support only cahracter and input/output
stream support only bytes input stram and the java reader
class has only one differnce and that is input stream only
support bytes and the reader class only supports the
These are IO streams but difference their
InputStream/OutputStreams class are byte-oriented
streams.this streams read and write in byte oriented.
InputStream/OutputStreams are never support unicode characters.
Reaer/writer class are belongs to the charecter stream
this streams read and write in character oriented Streams .
Reaer/writer are never supports unicode characters.
The Reader/Writer class hierarchy is character-oriented, and
the Input Stream/Output Stream class hierarchy is byte-oriented.
Basically there are two types of streams.Byte streams that
are used to handle stream of bytes and character streams for
handling streams of characters.In byte streams input/output
streams are the abstract classes at the top of
hierarchy,while writer/reader are abstract classes at the
top of character streams hierarchy.
What is the need to implement Serializable interface (with
no methods) for objects which are to be serialized ?
We can write our own functionality which writes objects to
streams then why we need to implement and tell JVM that
which objects can be serialized.
suppose we have an interface & that interface contains five
methods. if a class implements that interface then we have
to bound that to give tha definition of all five methods in
that class. If we declare that class as abstract then can
we call only two methods to give the deinition of that
method & i don't want to give the definition of all the
methods? can it possible