问题描述
我想知道Java是否纯粹面向对象。请用例子解释一下。我已经搞砸了,但我找不到确切的答案。
I'd like to know if Java is pure object oriented or not. Please explain it with example. I have goggled it, but I couldn't find the exact answer.
推荐答案
关于Java是否纯粹存在很多争论面向对象与否。
Java应该被认为是纯粹的面向对象语言,因为它有包装类。
所以你可以使用 Integer
, Float
等而不是 int
, float
等(总共有八种原始类型)。
There are lot of arguments around whether Java is purely object oriented or not.Java should be considered as purely object oriented language as it has wrapper classes.So you can use Integer
, Float
etc. instead of int
, float
etc. (there are a total of eight primitive types).
但是Java有八种原始类型,批评者会说Java并不是纯粹的面向对象。
But since Java has those eight primitive types, the critics will say Java is not purely object-oriented.
这篇关于Java是纯粹的面向对象还是不是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!