Domanda

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?
È stato utile?

Soluzione

  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.

Altri suggerimenti

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.

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top