can someone tell me how does preparedstatement works? its
an interface and where is the implementation?

Answer Posted / sk.bilal ahmed

A SQL statement is precompiled and stored in a
PreparedStatement object. This object can then be used to
efficiently execute this statement multiple times.

Note: The setter methods (setShort, setString, and so on)
for setting IN parameter values must specify types that are
compatible with the defined SQL type of the input
parameter. For instance, if the IN parameter has SQL type
INTEGER, then the method setInt should be used.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java is a technology?

521


What is non primitive data type in java?

492


What is j2ee explain the component of j2ee application?

443


What is j2ee architecture?

479


What is java j2ee developer?

467






What is javamail?

528


Define orm and its working in j2ee?

532


What is difference between javac and java?

502


What is application client container?

522


Enlist the technologies embraced in j2ee?

525


Describe secure socket layer (ssl)?

511


Is java is fully object oriented?

509


What is a java application client?

522


Why is java considered dynamic?

554


How will you explain cdata?

554