One of the expected right answer is : Three SQL statements are executed.
But the table schema is :
Code: Select all
ID(int) NAME(varchar) SUBJECT(varchar)
Code: Select all
PreparedStatement insertPS = c.prepareStatement("insert into SUBJECT (NAME, TEACHERID) VALUES (?, ?)");
AM i right on this or am i missing something?
As a side note, the code used to prevent SPAM during the registration process does not make sense
Code: Select all
To help us prevent SPAM, tell us what will this code print?: int 1 = 10; System.out.println("hello"+i);: