Sunday, August 30, 2015

Java-7 features : quick sample


1. Multi Catch statement:Multiple exceptions type to be handled by the same catch clause:
sample:
Catch(ParseException pe | IOException ioe){
//log error
}
Catch(Exception e){

}

No comments:

Post a Comment