Question: I. II. Your program should compile. A program with compiler errors will not be graded. Using NetBeans, create a new database and call it dbQuiz5,

I. II. Your program should compile. A program with compiler errors will not be graded. Using NetBeans, create a new database and call it dbQuiz5, and give it the username "user", and the password "db123". Create a Java class called DataBaseQuiz, which has the following methods: 1- CreateTable(). This method creates a new table called Employee in dbQuiz5. The table contains the fields: III. Id, Integer, not null, primary key. EmpName, VARCHAR(255) Salary, Integer 2- InsertData(). This method inserts the following records into the Employee table: 1, Ahmed, 600 2, Yara, 700 3, Ali, 800 3- getData(). This method gets/retrieves all the records from Employee table where the salary>600. Note: Inside each of the above two methods, you must write all the necessary code to load the driver class, connect to the database, execute statements, close the connection, and the necessary try-catch blocks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
