+ 3
Why is class and stream
in java
2 Answers
+ 3
All Java streams are derived from InputStream ( java.io.InputStream ) and OutputStream ( java.io.OutputStream ) classes. They are abstract base classes meant for otherstream classes. The System.in is the inputstream class derivative and analogically System.out is the output counterpart.
+ 3
A class--the basic building block of an object-oriented language such asJava--is a template that describes the data and behavior associated with instances of thatclass. When you instantiate a class you create an object that looks and feels like other instances of the same class