. 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.