What is actual difference between statement,prepared
statement and callable statement and when we have to use it?
pls post a answer with code and clear explanation. thanks

Answer Posted / sudha

Prepared statement is precompiled statement it is used when
we want one query to be executed n no. of times.
whereas callablestatement is used to call stored procedures

Is This Answer Correct ?    41 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is busy spin, and why should you use it?

584


what is meant by HQL?

637


How do we access static members in java?

620


What is an error in java?

631


What do you understand by overloading and overriding in java?

535






What is passing value java?

504


What is integer size in java?

499


what are the methods in object?

623


Why do we need data serialization?

536


Is java a utf 8 string?

520


Is java pass by value or pass by reference?

532


Explain public static void main(string args[]) in java.

520


How do you square a number?

570


How can we create an immutable class in java?

576


What is a platform?

532