• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to open .db file?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi:
I am new to java batabase.
I just join the scjd exam.
From the document that sun gave me,
I found a db-2x3.db file.
Can anyone teach me how to open this file?
And also what kinds of database system is best for java scjd exam.
Thanks
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tien Fu,
Welcome to JavaRanch.
As Lasse mentioned in this thread, the database format is a custom one designed for these assignments.
You should have received a file called instructions.html. Inside the instructions you will find a detailed description of the database format. You have to write a class or classes to read this file.
There should be one class, called Data.java, which implements the interface described in the instructions, which is the public access to the database.
Does this make sense?
Regards, Andrew
 
Andrew Monkhouse
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tien Fu,
To give you some ideas to work with
  • some people are using Random Access File to access the database, as discussed (briefly) in this thread
  • some are using File Chanels, as discused in this thread, and this thread
    Regards, Andrew
  •  
    ranger
    Posts: 17347
    11
    Mac IntelliJ IDE Spring
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I deleted the duplicate post of this thread. This seems to have the best answers in this one anyway.
    Tien, try to avoid duplicate posts, either in the same forum or across forums. Thanks
    Thanks Andrew.
    Mark
    [ June 24, 2003: Message edited by: Mark Spritzler ]
     
    reply
      Bookmark Topic Watch Topic
    • New Topic