+ 4

BufferedInputStream

1) InputStream in=new BufferedInputStream(new FileInputStream("test.txt")); 2).BufferedInputStream in=new BufferedInputStream(new FileInputStream("test.txt")); Can anyone explain above 2 codes?Is there any difference in above codes.?

15th Jan 2019, 9:20 AM
Nimesha Dilini
Nimesha Dilini - avatar
2 odpowiedzi
+ 6
There are no different above two codes. Because InputStream class is abstract class and it is supper class of BufferedInputStream class.
15th Jan 2019, 9:42 AM
T. A. Madushanka Kahawa
T. A. Madushanka Kahawa - avatar
0
so inputstream is the latest ?
17th Jan 2019, 3:29 AM
Learner Ishere
Learner Ishere - avatar