Appendix 6 Differences Between C++ and Java

This appendix is for readers who have had significant programming experience with either C or C++. Other readers can ignore this appendix.

Java and C++ appear to be very similar, but they have more differences than a casual examination of the two languages might lead you to believe. We will not describe all of the differences in this appendix, but we will go over a few similarities and differences in order to help you make the transition from C++ (or C) to Java.

Get Java: An Introduction to Problem Solving and Programming, 8th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.