This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I can use the same statement in adding batches. Now if you see I want to use the same statements in a single transaction too. Can I do that? I mean each transaction contains 5 statements to be executed. So is it compulsory that I should use 5 different instances for statements by calling con.createStatement or is it ok to have a single instance(and it is handled by the jdbc itself)?