I read that the InputStream
class,which is the superclass for all byte-stream input classes, is an abstract class which is inheritted by other specific byte-stream input classes. However, I also read that in java.lang.System there is an object that refers to the standard input stream which we refer to as java.lang.System.in
and that object instantiates the class InputStream.
In Sun API documentation, "in" is defined as:
public static final InputStream in
But i know that abstract classes cannot be instantiated. Have I misunderstood something?