G
Garg
Hi,
I want for an interview today. They asked me many questions and i
given correct answer except two (regarding Java)
1. if I need to update a database with 1000 records and how should i
proceed and how can i use transaction save point in this.
2. i am having a class with two constructor one is default and one is
with some parameters. How can i convert this in the singleton class.
Answer :
1. first part: I will preferable go for the prepared statement for
this with four loop
1. Second part : it's possible only if you use try catch block in the
for loop.
2. make both the constructor private.
Please tell me how should i go about if i need to implement these
conditions.
Thanks in advance
Garg
I want for an interview today. They asked me many questions and i
given correct answer except two (regarding Java)
1. if I need to update a database with 1000 records and how should i
proceed and how can i use transaction save point in this.
2. i am having a class with two constructor one is default and one is
with some parameters. How can i convert this in the singleton class.
Answer :
1. first part: I will preferable go for the prepared statement for
this with four loop
1. Second part : it's possible only if you use try catch block in the
for loop.
2. make both the constructor private.
Please tell me how should i go about if i need to implement these
conditions.
Thanks in advance
Garg