E
Efi Merdler
Hello,
Let's assume I have the following code:
try {
line = file.readLine();
} catch (IOException e) {
....
}
.... // code
try {
line = file.readLine();
} catch (IOException e) {
....
}
does this type of code is faster then trying to include everything
under try, i.e.
try {
line = file.readLine();
.... // code
line = file.readLine();
} catch (IOException e) {
....
}
What happens when I'm using a loop, that is
for (...) {
try {
....
} catch (...) {
}
Thanks,
Efi
Let's assume I have the following code:
try {
line = file.readLine();
} catch (IOException e) {
....
}
.... // code
try {
line = file.readLine();
} catch (IOException e) {
....
}
does this type of code is faster then trying to include everything
under try, i.e.
try {
line = file.readLine();
.... // code
line = file.readLine();
} catch (IOException e) {
....
}
What happens when I'm using a loop, that is
for (...) {
try {
....
} catch (...) {
}
Thanks,
Efi