Performance of application will be faster if you use PreparedStatement interface - JDBC

Q.  The performance of the application will be faster if you use PreparedStatement interface because query is compiled only once.
- Published on 22 Jul 15

a. True
b. False

ANSWER: True
 

    Discussion

  • SHAIK.shabana azme   -Posted on 25 May 21
    True
  • Prajakta Pandit   -Posted on 14 Dec 15

    - The above statement is true.

    - It improves the performance of an application.

    - The prepareStatement() method of connection interface is used to return the object of PreparedStatement.

    - It is mostly used to execute the parameterized query.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)