adplus-dvertising
frame-decoration

Question

Which of the following is advantage of using PreparedStatement in Java?

a.

Slow performance

b.

Encourages SQL injection

c.

Prevents SQL injection

d.

More memory usage

Posted under Java Programming

Answer: (c).Prevents SQL injection

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is advantage of using PreparedStatement in Java?

Similar Questions

Discover Related MCQs

Q. Which one of the following contains date information?

Q. What does setAutoCommit(false) do?

Q. Which of the following is used to call stored procedure?

Q. Which of the following is used to limit the number of rows returned?

Q. Which of the following is method of JDBC batch process?

Q. Which of the following is used to rollback a JDBC transaction?

Q. Which of the following is not a JDBC connection isolation levels?

Q. Which of the below is not a valid design pattern?

Q. Which of the below author is not a part of GOF (Gang of Four)?

Q. Which of the below is not a valid classification of design pattern?

Q. Which design pattern provides a single class which provides simplified methods required by client and delegates call to those methods?

Q. Which design pattern ensures that only one object of particular class gets created?

Q. Which design pattern suggest multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?

Q. Which design pattern represents a way to access all the objects in a collection?

Q. What does MVC pattern stands for?

Q. Is design pattern a logical concept.

Q. Which design pattern works on data and action taken based on data provided?

Q. Which of below is not a dependency management tool?

Q. Which of the following is not a maven goal?

Q. Which file is used to define dependency in maven?