View Single Post
  #1 (permalink)  
Old 05-28-2008, 05:39 AM
sathishranganathan sathishranganathan is offline
Member
 
Join Date: May 2008
Posts: 1
sathishranganathan is on a distinguished road
Best practice of IF loop with NOT
Hi,

Please suggest me the best practice of using if loop with 'NOT' condition.

For example:
if (rs != null){rs.close();}

if (rs == null){} else{rs.close();}

Which of the above is optimised?

Thanks in advance

Sathish
Reply With Quote
Sponsored Links