File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes about  data files!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "about  data files!!" Watch "about  data files!!" New topic

about data files!!

haoran lin

Joined: Dec 16, 2004
Posts: 1
hi guys!
I have download my assignment(Version 2.2.2 . what different with 2.3.2?)
but I am confused now!
there is a file of ".db" form,is it the database that sun called?
and how am i use to that? and must i not use the JDBC?
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
You cannot use JDBC. There should be a "must not" clause in your instructions somewhere regarding JDBC. It wouldn't work anyway, as the .db file is a flat data file instead of a true database file that you must write the data access code for. Your instructions will outline the data file schema, and you can work from there.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

Hi Haoran,

The instructions you received should include a section title "Data file Format". This tells you the layout of the records in the provided data file.

You need to create a class (or classes) that can read this file. You should have been provided with an interface (in the "Server" section of your instructions) that will tell you what methods you must write to access the data file.

Does that give you an idea of how to start?

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link:
subject: about data files!!
It's not a secret anymore!