In C# and in Java (and possibly other languages as well), variables declared in a \"try\" block are not in scope in the corresponding \"catch\" or \"finally\" blocks. For e
The variables are block level and restricted to that Try or Catch block. Similar to defining a variable in an if statement. Think of this situation.
try {
fileOpen("no real file Name");
String s = "GO TROJANS";
} catch (Exception) {
print(s);
}
The String would never be declared, so it can't be depended upon.