0

bufferedReader

While using bufferedReader in file operations in java, why do we need to typecast whatever we read from the file? Please elaborate

30th Dec 2021, 7:46 PM
Ruchika Sehgal
Ruchika Sehgal - avatar
2 ответов
0
Oh, so we need to typecast whatever we obtain from the bufferedReader in its required type.
31st Dec 2021, 7:27 AM
Ruchika Sehgal
Ruchika Sehgal - avatar
0
But what is the difference between getting input from by using the Scanner object and that of the InputStreanReader. I can't yet differentiate..
31st Dec 2021, 7:30 AM
Ruchika Sehgal
Ruchika Sehgal - avatar