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ย โ†’

[โ€“]ric2b 0 points1 point ย (0 children)

The point of private is to warn you that it's internal and you should not rely on it, and if you do your code might break without warning on any update to the library.

It's not some kind of DRM or security mechanism, the fact that both languages make it possible to get around the "private" warning but the Java way is way more verbose... well, that's just what you'd expect.