Throw Keyword : The throw keyword is used to explicitly raise an exception. A raised exception should be handled to prevent the program from exiting abruptly. Syntax : throw new Exception_name() Example : main() { try { test_age...
jeetbhalu.hashnode.dev1 min read
No responses yet.