For my study in the university I\'m forced to do some ugly java basics, like working without encapsulation, main method in the same class etc. (I do not want to open a discu
Yes—in Java, private is class private not instance private.
Many other languages use instance private, eg Ruby and Smalltalk.