How can i call two different methods in a single try catch | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i call two different methods in a single try catch

java program

9th Feb 2018, 5:18 AM
NARESH BABU PATAKARLA
NARESH BABU PATAKARLA - avatar
2 Answers
10th Feb 2018, 12:09 AM
Tim Millar
Tim Millar - avatar
+ 1
You can put whatever you want in the try, catch, or finally blocks https://code.sololearn.com/c6Wcf3QHMgH8/?ref=app
9th Feb 2018, 5:45 AM
Jesse Bayliss
Jesse Bayliss - avatar