I'm landed into doubt where System class is having static field in
of InputStream type. InputStream is a abstract class.
Java document says, System.in stream is already open and ready to supply input data.
Abstract class cannot be initialized until its implemented. But Input stream has been implemented by various classes like AudioInputStream, ByteArrayInputStream, FileInputStream, FilterInputStream etc. So when we use System.in, which class's object gets instantiated ? Or if not Does it creates any anonymous class ?
Please share your views ..!