|
Re: how to tell C++ from Java source code?
Before I go any further, I must say that if this is a skill you must possess to perform your work task, it's not wise to simply ask a forum how to tell the difference. That would be the equivalent of a cheat sheet. Does good on the test, but then it has no practicality in the real world.
That being said, I'd suggest reading lots of code and picking out the differences for yourself. As for your question, // doesn't indicate rather the code is C++ or Java. // is simply a comment, and it's a comment in C++ and Java. Perhaps someone could correct me if I'm wrong, but I don't think a /**/ comment is a Java comment. I believe that's exclusively a C++ comment, but I may be wrong.
|