Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another code snippet about SQLException

 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, here is another code snippet about SQLException that I am not sure about:
public void close() throws SQLException{
try{
connection.close();
}
catch(SQLException e){
throw e;
}
}
Isn't the exception handling in this method redundant?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic