When I instantiate the DataInputStream like this,
I know, all the constructors upto the hierarchy will be called. But when you instantiate the DataInputStream, what superclass constructor gets called? Will be default constrctor created by
java or the superclass FilterInputStream's constructor?
If I create a subclass, I will always assume that the subclass will put super(); as the first line in its constrctor if I don't call superclass constructor explicitly or I will call the superclass constructor explicitly, There should be matching superclass constructor in either case.
In DataInputStream, there is no DataInputStream() constructor which takes no argument. So what is the calling hierarchy? Anyone make the concept clear for me?
Thanks.