The announcement.Execute() method makes it possible for us to execute any variety of question like opt for, update. It returns boolean. If the return price is right, then it performed decide upon question, get the ResultSet object and read the resulted records. If it returns false, then it may be replace query, name getUpdateCount() procedure to get complete records up-to-date.
Write a code to execute any type of query in JDBC.