Java Features

Table of Contents

Improved from C/C++

strings are not represented as null-terminated arrays1

Java doesn't suffer from this specific problem, since strings are not represented as null-terminated arrays. Array subscripts are checked as well, so it is not possible to access outside the bounds of an array in Java.

Footnotes:

1

The Practice of Programming page 14

Author: Shi Shougang

Created: 2015-03-05 Thu 23:20

Emacs 24.3.1 (Org mode 8.2.10)

Validate