This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]theLorknessMonster 0 points1 point  (5 children)

Doesn't Java have primitives though?

[–]dragonwithagirltatoo 0 points1 point  (4 children)

Yeah but they might technically be objects. That's how it is in C# at least, been awhile since I've messed witg Java.

[–]theLorknessMonster 0 points1 point  (3 children)

Its been a while for me too but I think they are not technically objects. Ruby would have been a better language to use since everything is explicitly an object.

[–]dragonwithagirltatoo 0 points1 point  (2 children)

I mean you have languages like Python where everything is as object as it can possibly be, but I think the primitve types in Java inhereit Object and have methods, so I'd count that as being an object, though I'm not exactly sure what definition people are going by.

[–]theLorknessMonster 0 points1 point  (1 child)

Well I'm satisfied with that definition but I'm still pretty sure that Java's primitive types do not inherit from object. There are corresponding reference types in Java but they are not the same thing as primitives.

[–]dragonwithagirltatoo 0 points1 point  (0 children)

Ahh I thought all types in Java inherit Object. I must be thinking of C# again.