no, because catch is used to handle exceptions which are generated from try block
Chat with our AI personalities
the catch block catches the exception from the try block to display a proper message about the exception.
Answered by, SOORAJ.M.S
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
No, 'check' is not a keyword in java language.
No extern keyword in Java.
No. You cannot throw or catch Null pointer exceptions
There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.
Literal in java are L, F, null, true, false These act as keyword(have special meaning in java) but these does'nt comes under the category of Java Keyword.