do i have to handle error exception in java code example

Example 1: how do you handle exceptions in java

I use try & catch blocks to handle any exceptions in my code. 
  I am familiar with major checked and unchecked exceptions and 
  handle it accordingly to make my code execution smooth

Example 2: how many ways we can do exception handling in java

We can handle exceptions in either of the two ways :
1) By specifying try catch block where we can catch the exception.
2) Declaring a method with throws clause