+ 5
[java] If java doesn't have pointers, how come I can get a NullPointerException?
2 ответов
+ 14
@Twelfty is right. If you don't know that Java handles the pointers for you and hides them away, then you cannot see any reasons to prefer Java over C or C++.
Btw that's the reason some Java quizzes make me laugh. There are a couple of them stating that Java doesn't have pointers. They all should have been declined because that really is misleading (and teaches something wrong).
+ 5
Java has pointers but hides from programmers.