Property C++ Java PHP
First command line argument $_SERVER['argv'][1]
Default 'passing to function' behaviour by value primitives by value, objects by reference by value, is this also true for objects in php5?
default function arguments YES since JDK1.5 ? YES, in php4 not for references
String comparing if ('willi' == $anotherString) ...
global variables & functions, YES only through static class members YES
preprocessor YES NO NO
structures YES NO ?
unions YES NO ?
bitfields YES NO ?
typedef YES NO NO?
mulitple inheritance YES with interfaces & delegation ?
operator overloading YES NO (Exception: + in String) NO?
pointers YES NO NO
forced exception handling NO YES ?
Threads with additional librarys NO ?
Index checking in arrays NO YES YES?
Arrays can grow NO, use container NO, use container YES
garbage collection manual automatic automatic
See also [[http://www.dmh2000.com/cjpr/|C++ vs Java vs Python vs Ruby : a first impression]]