Answer:
The Update statement in the DML is used for changing existing data in a table.
Explanation:
Their are following Sql statement in the DML.
Insert
This SQL statement is used for inserting data into the table.
select
This SQL statement is used for retrieving data from database
update
This SQL statement is used for updating data in a table.
delete
This SQL statement is used for delete data from database .
The "UPDATE" SQL statement in DML is used for Modify the data in the existing table .
Following are the syntax of Update SQL query
Update tablename
set column1=value1,column2=value2............column N=valueN
Where condition;
Example :Suppose we have student table and (rollno,name,age and add) are the field for that table we have to change the address of rollno 105
Then we use update query like that
UPDATE STUDENT
SET add='kalam nagar'
where rollno=105;
You have to ask you teacher to show you which ones you got wrong and the answers to them.
Answer:
The main method should simply terminate if the FileNotFoundException occurs.
Explanation:
Considering the full code snippet
snippet:public static void main(String[] args) throws FileNotFoundException
public static void main(String[])
represent the entry point method to a java main method
The addition of
throws FileNotFoundException
widens the scope of the main method to explicitly specifies that an exception named the FileNotFoundException may be thrown.
So, if any part of the code explicitly throws the FileNotFoundException the compiler makes use of this to throw an exception.
By throwing an exception, the main method is not catching any exceptions, instead it handles the FileNotFoundException by throwing it to the source which invoked the main method
This is required by the compiler to terminate the program if the FileNotFoundException occurs.