Java is also not pure object-oriented like c++


the main() method in Java code is itself inside a class. The static keyword lets the main() method which is the entry point of execution without making an object but you need to write a class. In C++, main() is outside the class and writing class it self is not mandatory. Hence, C++ is not a pure object oriented language bu Java is a completely object oriented language.

Updated on: 30-Jul-2019

278 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements