This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes DataInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "DataInputStream" Watch "DataInputStream" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Does DataInputStream accepts FilterInputStream as an argument?
My answer is No. Any arguments??
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
I think it will accept as both of them are highlevel streams.
I do not know if i can generalize, all high level streams accepts,low level streams and high level strems as arguments.
Can anyone here list all the ways to
1. read a line of text in charactres.
2. read line of text in numbers.
I think we should use readLine() method of BufferInputStreams,
BufferedReaders. Am i correct? Are there any otherways to do that?
- Thanks
I agree. Here's the link:
subject: DataInputStream
jQuery in Action, 3rd edition