使用哪个选项能够防止SQL注入?

使用哪个选项能够防止SQL注入?

A.Statement

B.PreparedStatement

C.Connection

D.ResultSet

正确答案是B