try ,catch and throw blocks in java example Example: java try catch try { // Code that may have error } catch(ErrorName e){ // Another code }