In Java you don't have any function that is outside of the class but in C-C++ you have at least main outside of any class and so people have the opinion that Java is complete OO but not C++.