Vikram, Hmmm... the best argument for this is that Java was designed to be an object oriented language, whereas C++ was supposed to be an object oriented version of C (which was not originally object oriented). Therefore, more OO things are enforced in Java, whereas in C++ you can do things the old C way (non-OO) and they will still work fine... Just my $0.02, -Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Adding to that , In C++ you can have friendly methods that are does not belong to any class. You also have a main method which is again not enclosed in any class. This is not pure Object Oriented Approach you see!
"Vikram D", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements. Thanks.