Why java is called purely object orientated language??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why java is called purely object orientated language???

give me the answer

9th Aug 2018, 9:28 AM
Shivani Rajendra Nannor
Shivani Rajendra  Nannor - avatar
2 Answers
+ 8
Java is not purely object oriented because it has primitive datatypes, which are not objects.
9th Aug 2018, 10:48 AM
Eduardo Petry
Eduardo Petry - avatar
+ 1
Eduardo is correct. However it's heavily OOP because almost every file you create in Java is a class, even your main function has to be inside a class.
10th Aug 2018, 12:20 AM
Chris
Chris - avatar