+ 1

Is everything in java running in classes?

31st Jan 2020, 12:52 PM
Aryan Kaushik
Aryan Kaushik - avatar
3 odpowiedzi
+ 5
Yes, Java is fully object oriented unlike C++ for example.
31st Jan 2020, 1:11 PM
Sonic
Sonic - avatar
+ 4
//You can see Note section in this lesson https://www.sololearn.com/learn/Java/2137/
31st Jan 2020, 12:59 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
If your question was to know whether java is completely an OOP programming language or not then you can read this- Java is not completely an OOP languages because it supports primitive data types like int, float, double etc. But Java has something called wrapper classes which are nothing but class type of the primitive types. Even then it doesn't satisfy the conditions of a complete OOP language because there is autoboxing and unboxing that is happening internally. It means that every wrapper class is converted to its primitive type before performing any operations on the object.
31st Jan 2020, 2:31 PM
Avinesh
Avinesh - avatar