ObjectInptStream & ObjectOutputStream are processing streams, so it mutst be constructed on another stream(a data sink stream rather,like FileOutputStream)
. My question is that both ObjectInput & ObjectOutput Streams have two constructor one of which does not take any arguments, i.e default constructor.So how we will construct ObjectInput & ObjectOutput Streams using this constructor. Bye. Viki. ------------------ Count the flowers of ur garden,NOT the leafs which falls away!
Hi Vikrama, The only way you can use the protected constructor which accepts no parameters is to sublcass the ObjectInputStream or ObjectOutputStream. The no arg constructor is needed so that subclasses don't need to create any extra data just to get the functionality correct. Just using the I/O methods in any java program will not allow you to call the no argument constructor. Regards, Manfred.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.