Technical Discussion :: WebMethod
Home > Technical Interview Q&A > WebMethod > Discussion
10 / 166
What is scope of variable that declared outside the main? is that accessible in try & catch block?
Answer:
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.
Asked In ::
Sourav Majumder
21 Dec, 2019 7:26 AM
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.