• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing a database

 
Karthikeyan Chandrasekaran
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

As per my understanding, we may need to develope a minimal version of database in Java and we have to use it for the assignment part of the exam. So i want to know what are the ways through which a simple database can be created. So far i have the following 2 ideas.

1. Using ObjectOutputSteram and ObjectInputStream to perform write/read operations with a persistant storage.

2. Using RandomAccessFile class to perform read/write operations into a file there by providing a simple database.

Let me know whether there is any better alternates/ refined ways to accomplish this task.
 
Ed Tse
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using option 2, simple and easy.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!