【正文】
r Compiler Operating System Java Runtime Environment (JRE) C++ vs. Java: differences C++ Java Write once, pile everywhere ? unique executable for each target Write once, run anywhere ? same class files will run above all targetspecific JREs. No strict relationship between class names and filenames. Typically, a header file and implementation file are used for each class. Strict relationship is enforced, . source code for class PayRoll has to be in C++ vs. Java: differences … C++ Java I/O statements use cin and cout, . cin x。 cout y。 I/O input mechanism is bit more plex, since default mechanism reads one byte at a time (). Output is easy, .