Learn
JDBC, see the Sun website for tutorials/Google or buy a book. This will teach you how to read and write to a database.
"I am using eclipse as developing tool"
I'm not sure if I would recommend using an
IDE for a beginner as you'll end up spending more time learning the environment than programming. But why not...
And by "executable" I hope you mean a .jar file and not .exe.
P.S. For someone who is a
SCJP,
you should really be showing more initiative.