difference between throw and throws in java

13 years ago

throw keyword: The throw keyword is used to explicitly throw an exception. We can throw either checked or unchecked exception.…

finally block in Java

13 years ago

The finally Keyword: The finally keyword is used to create a block of code that follows a try block. A…

Nested try catch block Handling

13 years ago

In Java we can have nested try and catch blocks. It means that, a try statement can be inside the…

Multiple catch block Handling

13 years ago

So far we have seen how to use a single catch block, now we will see how to use more…

try & catch block and Handling Exceptions

13 years ago

A method catches an exception using a combination of the try and catch keywords. A try/catch block is placed around…

Exception Handling and Checked and Unchecked Exception

13 years ago

Exceptions in Java - What are Java Exceptions? A Java Exception is an abnormal condition that arises during the execution…

Instance initializer block in Java

13 years ago

Apart from methods and constructors, Initialization Blocks are the third place in a Java Program where operations can be performed.…

super keyword in Java

13 years ago

The super is a keyword defined in the java programming language. Keywords are basically reserved words which have specific meaning…

this keyword in Java

13 years ago

There can be a lot of usage of this keyword. In java, this is a reference variable that refers to…

final keyword in Java

13 years ago

The final is a keyword. This is similar to const keyword in other languages. This keyword may not be used…