-1

Can someone post or point out an example of

  1. how flat-file data access is done in java? What java technology is used for the purpose?
  2. how rdbms data access is done in java? What java technology is used for the purpose?
The-Droidster
  • 635
  • 7
  • 13
  • 2
    This question is too generic: what do you call data? How is it supposed to be encoded? etc etc – fge Dec 22 '12 at 18:43
  • Sorry for being too generic, but really speaking I'm quite new to all this and honestly I'm not aware of all the details and nitty-gritty. Sorry. – The-Droidster Nov 27 '13 at 10:28

3 Answers3

2
  1. java.io is used to read and write data to files. There are several good tutorials online such as this one and this one that will assist you with understanding the details.
  2. JDBC is used to connect to databases. Again there are numerous JDBC tutorials online.
Vincent Ramdhanie
  • 102,349
  • 23
  • 137
  • 192
1

how flat-file data access is done in java? What java technology is used for the purpose?

As fge said, too generic. Need more detail. You use File I/O to interact with the file system, but if you need to interact with some specific format, that's just the beginning.

how rdbms data access is done in java? What java technology is used for the purpose?

With JDBC. You can find a driver for just about any database out there along with a horde of supporting libraries to simplify database access, transaction management, schema management, etc.

Ryan Stewart
  • 126,015
  • 21
  • 180
  • 199
1

May I direct you to the Java Tutorial? In particular the sections Basic I/O and JDBC Database Access?

meriton
  • 68,356
  • 14
  • 108
  • 175
  • How many answers do we really need linking to the same two tutorials? – Ryan Stewart Dec 22 '12 at 18:51
  • As many as needed to get the point across ;-) Seriously: Didn't see you linked to the same tutorials. Was that an edit? I could have sworn the File I/O link wasn't there when I started digging up the links. – meriton Dec 22 '12 at 18:53
  • heh :) Yeah, the file link was an afterthought, since I thought maybe the OP was just looking for plain file access. – Ryan Stewart Dec 22 '12 at 18:55