Arrays and Strings

Java and C differ significantly with respect to arrays and strings. In general Java arrays and strings are of referential type while in C both are merely blocks of memory with a name. The indirection used by Java gives more control at the price of lower performance. From a safety point of view C arrays and strings are dangerous because a violation of array limits usually results in a runtime error possibly much later than the violation itself.