Qus:    What is scope of variable that declared outside the main? is that accessible in try & catch block?
Nov 27, 2020 13:40 1 Answers Views: 169 KRISHNA SWAROOP

 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.

Prev Next
Answers (1)
PADMAKEECHU Nov 28, 2020 09:39
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.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect