What is the advantage of preparedstatement over statement?
Answer / Mahesh Chauhan
A PreparedStatement in Java offers several advantages compared to a Statement. It provides pre-compiled SQL statements, which makes it more efficient when executing the same query multiple times. Additionally, it allows for parameterized queries, reducing the risk of SQL injection attacks and improving performance by reusing the compiled statement.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
Which is bigger float or double?
What is a cup of java?
What are different types of expressions?
What methods are used to get and set the text label displayed by a button object?
Is there any use of an abstract class which has no methods and no attributes?
When should the method invokelater() be used?
What is collections framework?
What does java stand for?
What defines function?
There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects