Why java is not pure object oriented language . Is there any other language that supports pure object oriented behaviours? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why java is not pure object oriented language . Is there any other language that supports pure object oriented behaviours?

why objects are considered to safer tyan pointers and what is the importance of objects in security and virtual fiels entity.

3rd Jun 2018, 9:05 AM
Dhruv Walia
Dhruv Walia - avatar
3 Answers
+ 5
Java isn't pure object oriented, because primitive datatypes such as int, double, float (...) can be used. Languages like Ruby and Smalltalk are pure object oriented languages, everything is an object. Java hides pointers to prevent dangling references (see: garbage collector) and to avoid bugs that result from messing up the memory which may be hard to find and to fix. I'm not sure I understood the last part of your question: 'What is the importance of objects in security and virtual fields entity'. Could you elaborate on that?
3rd Jun 2018, 10:52 AM
Tashi N
Tashi N - avatar
+ 1
Java is now a purely object oriented language as it has wrapper classes. So you can use Integer, Floatetc. instead of int, float etc. (there are a total of eight primitive types). But since Java has those eight primitive types, the critics will say Java is not purely object-oriented. Read Here:- http://crbtech.in/Java-Training/significant-object-oriented-principles-every-java-developer-must-know/
4th Jun 2018, 6:24 AM
pranit patil
pranit patil - avatar
0
i got my answer and to elaborate the last part is why objects are secure part in virtual entity cauz of abstraction or sumething else
3rd Jun 2018, 10:58 AM
Dhruv Walia
Dhruv Walia - avatar