Question: what is the difference between if-else and try-catch?
Answer: 'try' is a section where a code is defined for tested whether the code generates an unexpected result while executing, if any unexpected result found catch block is executed to handle that situation. 'if-else' use to handle different conditions using condition checking.