Language Elements


  • ANSI C control structures

  • Arrays and strings are objects

  • No handle to real or virtual memory addresses. No C/C++ style pointer arithmetic

  • Memory reclaimed via garbage collector

  • Support for exceptions. The Java run-time exports errors as exceptions

  • Support for creating and managing threads

  • Built-in concurrency control API in Object



Detailed Description:

"Let's look at some more language elements. Java uses the ANSI C control structures. This is for loops, while loops, do loops, if statements, and switch tatements. They follow the similar syntax in ANSI C.

Another modification, though, is that the language semantics for strings and arrays are quite different from those in existing C or C++ programming. In Java's case, strings and arrays are now full objects. We have methods associated with them, and they have information contained within them."