answersLogoWhite

0

no, because catch is used to handle exceptions which are generated from try block

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
More answers

the catch block catches the exception from the try block to display a proper message about the exception.

Answered by, SOORAJ.M.S

User Avatar

Wiki User

14y ago
User Avatar

The catch keyword is used in Java exception handling along with try blocks. It is used to catch and handle exceptions that are thrown inside the try block

User Avatar

Wiki User

13y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Why use catch keyword in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp