If I have a variable in a try catch block the variable is only in scope within that try block...how can I then refer to this variable from the next try catch block?
james6754
39
Junior Poster
Recommended Answers
Jump to PostHi,
Try-block is the segment for you code to execute safely. This is in-order to eliminate program crush if exception occurs at runtime. The Catch-block is segment to execute in case exception thrown by the runtime environment.
Every mature code must have a catch segment to trap the …
All 4 Replies
Krondorl
0
Newbie Poster
james6754
39
Junior Poster
ArathySharath
0
Newbie Poster
everhett.raman
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.