Sunday, March 5, 2006

The difference between C++ and Java...

Say we create an array, and go out of bounds while accessing the array.

Java whines, "Massss-terrrr.... ArrayIndexOutOfBounds exception..."

But C++ spits: "Unhandled exception at 0x00402b1e in ImgSim.exe: 0xC0000005: Access violation reading location 0xabababb3."

No wonder C++ programmers eat Java 'grammers for lunch any day...

No comments: