Interview Question
Qus: What is scope of variable that declared outside the main? is that accessible in try & catch block?
Yes, it should be accessable if it is declared before the main sequence as an individual variable.
Scope of a variable is limited when declared inside a sequence when scope is mentioned.
Answers (1)
Scope of a variable is limited when declared inside a sequence when scope is mentioned.