Wha are the differences between Statement, PreparedStatement and CallableStatement ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Wha are the differences between Statement, PreparedStatement and CallableStatement ?

explain proper use of them and which one have resultset values

24th Mar 2017, 4:32 AM
faraz tanveer
faraz tanveer - avatar
1 Answer
+ 1
the difference is a prepared statement has only input variables but a callableStatement also has output variables in, out and a mixture of both inout explaining them deeper would take pretty long so have fun with this link https://www.tutorialspoint.com/jdbc/jdbc-statements.htm
12th Apr 2017, 5:27 AM
Daniel S
Daniel S - avatar