I've programmed in Java before and now that I'm learning C++ I'm curious as to how C++ treats primitive data differently than java. What are some ways C++ handles primitive data differently than Java that I should look out for?
It's not so much primitive data types that are handled differently, but rather non-primitive types.
However, you should be aware that the size of primitive data types depends on the platform in C++.
automatic and dynamic storage duration: primitive data types are non-initialized if no initializer is used, and are zero-initialized if an empty initializer is used: