
03-15-2006, 08:31 PM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
|
Java's arrays are like a class with a read-only size variable. You can't go out of bounds in a Java array. The size variable is nice, but you can make a list class in C++ that would be better than a Java array because in C++ you can override certain operators and in Java you can't override any operators. In Java you can't have two derived class types and in C++ you can. Java is more strongly typed to better guard against security holes. Java has the built in garbage collector thing and C++ doesn't. Java's syntax has a much nicer structure and promotes readability more than C++. In my opinion, Java's library overstates readability in the sense that it makes things less readable sometimes, but any programmer can do that. Also, Java is platform independent. My thumb is bleeding. |
|
|
|