What is the Execute method in Java?
The method is used for executing a query. It returns true if the ResultSet object is the query return. It returns one ResultSet object.
BY Best Interview Question ON 10 Apr 2019
Example
Int m = st.executeUpdate(sql);
If (m==1)
System.out.println (“inserted successfully: “+sql);
Else
System.out.println (“insertion failed”);