+ 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.
3 ответов
+ 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?
+ 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/
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