11
Concurrent Programming 04 Sachintha Gunasena MBCS http://lk.linkedin.com/in/sachinthadtg

Concurrency Programming in Java - 04 - Essentials of Java Practice

Embed Size (px)

Citation preview

Page 1: Concurrency Programming in Java - 04 - Essentials of Java Practice

Concurrent Programming

04

Sachintha Gunasena MBCShttp://lk.linkedin.com/in/sachinthadtg

Page 2: Concurrency Programming in Java - 04 - Essentials of Java Practice

Java Programming Workshop

Sachintha Gunasena MBCShttp://lk.linkedin.com/in/sachinthadtg

Page 3: Concurrency Programming in Java - 04 - Essentials of Java Practice

FileIOTest

• Simple application to perform File Input/Output operations.

Page 4: Concurrency Programming in Java - 04 - Essentials of Java Practice

JDBC Example• Simple application to connect to the

database, read data from a database, edit data on a database, and delete the database.

• CRUD• important to import the correct database

driver to the project• the database server must be running

Page 5: Concurrency Programming in Java - 04 - Essentials of Java Practice

JavaDBApp• Simple GUI application to

• get a username and password as input • and connect to a predefined database • to check whether the data entered in the form is matched

with data in database• then return a true or false• display a message stating whether the login was successful

or not• import correct database library to the project• make sure the database server is running

Page 6: Concurrency Programming in Java - 04 - Essentials of Java Practice

Servlet Demo

• A servlet to authenticate a user by connecting to a login database

• import development server to the project• import correct database library to the

project

Page 7: Concurrency Programming in Java - 04 - Essentials of Java Practice

Login Demo• Simple login page which will connect to a

database and authenticate a user• uses jsp pages• import correct database driver to the

project• import the development server used to test

the project

Page 8: Concurrency Programming in Java - 04 - Essentials of Java Practice

Assignment• Create a GUI Java application to manipulate a database• User must be logged in first via the initial welcome and login page• There must be a separate page containing controls to

• create a table• add data to an existing(or newly created) table• delete a table

• Finally there must be an option to save a selected dataset from the database to a file in the user computer

• Errors must be properly handled and displayed to the user wherever possible

Page 9: Concurrency Programming in Java - 04 - Essentials of Java Practice

Next Up…

• Concurrency

Page 11: Concurrency Programming in Java - 04 - Essentials of Java Practice

Thank you.

Sachintha Gunasena MBCShttp://lk.linkedin.com/in/sachinthadtg