/**
* Reads characters into an array. This method will block until some input
* is available, an I/O error occurs, or the end of the stream is reached.
*
* @param cbuf Destination buffer
*
* @return The number of characters read, or -1
* if the end of the stream
* has been reached
*
* @exception IOException If an I/O error occurs
*/
public int read(char cbuf[]) throws IOException {
return read(cbuf, 0, cbuf.length);
}
Correct answer is D
A & B will show an error because : The method readLine() is undefined for the type FileReader.
C will show an error because : Cannot invoke read() on the array type char[]
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
tapwa
9 months, 2 weeks agolmocanasu
1 year, 9 months agoOmnisumem
1 year, 10 months agoStavok
2 years agoMukes877
2 years, 1 month agoJGR_77
2 years, 3 months agoJGR_77
2 years, 3 months agoObalt
2 years, 4 months ago