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.
hai peter , for the 1st queswtion as per my knowledge the ans should contain the ASCII code as the last argument in the constructer so the ans may be 'd' hope this will help u, if wrong correct me tnks, krishna
1. b is the correct answer. d would have been correct if the arguments were passed correct. BufferedReader b= new BufferedReader (newInputStreamReader(s.getInputStreamReader), "8859_1"); the "8859_1" String parameter should be in the constructor of InputStreamReader. 2. b is the correct answer This question is asked by Janani, and eplanation is given for this in that post. All, I am a buddy to this group and can I know what "green horn" means. Thanks
1) A is correct. Because the stream is said to be standard ASCII encoding we don't need a Reader(?). Only A has a valid constructor. In B, FileInputStream doesn't take an InputStream, only String, File and FileDescriptor. 2) If the FileInputSTream is a typo (FileInputStream) then B is correct, otherwise none.