I learned Java and I am got benefit. So Read, or follow my blogs, and you will also get the same. Here I have given differences between COBOL tables and Java arrays.

COBOL Arrays

  • 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 Arrays

  • 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.
Fediverse reactions

Discover more from Srinimf

Subscribe now to keep reading and get access to the full archive.

Continue reading