Java variables within SQL statements to be sent

Hi,Simple basic question really. Is it possible to send SQL statements through a JDBC setup which contain Java variables (say for the purpose of capturing text from a GUI component and loading it onto a database)?Thanks
[240 byte] By [Bakumba84a] at [2007-10-2 17:44:59]
# 1
Yes. I call this one the appropriate use of PreparedStatements. Bind the parameters based on user input at runtime.
Bakumba84a at 2007-7-13 19:02:44 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...