Differences of COBOL tables vs Java arrays

[Apply for all Java jobs now!]
[Apply for all Java jobs now!]
I learned Java and I am getting benefit. Read/follow my blogs, so you will also become valuable developer.

COBOL

  • Multiple dimensions (maximum seven).
  • Fixed in size at compile time, unless you use the OCCURS DEPENDING ON clause, which specifies the minimum and maximum sizes.
  • Can initialize at declaration time.
  • Can initialize by assigning values in the code.
  • Supports built-in search capability

Java

  • Multiple dimensions (no limit).
  • Fixed in length at run time, but cannot be changed once set. The Vector class in the java.util package can be used for truly dynamically sizable arrays.
  • Can initialize at declaration time.
  • Can initialize by assigning values in the code.
  • No built-in search functions, except via the Arrays class in java.util (new in JDK 1.2), or via the Hashtable class, also in java.util.
Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.