What is the correct sequence to create a database connection?i. Import JDBC packages.ii. Open a connection to the database.iii. Load and register the JDBC driver.iv. Execute the statement object and return a query resultset.v. Create a statement object to perform a query.vi. Close the resultset and statement objects.vii. Process the resultset.viii. Close the connection
Predict the output,??class task{public static void main(String[] args){int i;System.out.println(i);}}
public class rrce{public static void main(String[] args) {final int i;i = 30;int j = i+10;i = j+30;System.out.println(i + " " + j);}}