given the question below , I would choose B is the only answer, but I am not sure if I am right in this case. Anybody please clarify this. thanx 9) Given that a java.io.IOException might occur when calling the read() method of the BufferedInputStream, you can handle the exception by: a) Catch a java.io.EOFException using a try/catch clause.
b) Catch a java.lang.Exception using a try/catch clause.
c) Listing a java.io.EOFException in a throws list.
d) Catch the java.lang.Exception using the throw statement
SeaHawk, "a" and "c" can't be correct because of the folowing hierarchy +--java.lang.Exception | +--java.io.IOException | +--java.io.EOFException "b" is quite obvious and is correct!! For "d" Catch the java.lang.Exception using the throw statement - U can't catch an exception by using the throw keyword so unless it is something else, this is also wrong. So, B is the only correct answer!! Ankur [This message has been edited by Ankur (edited July 03, 2000).]
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad: