Question On Encapsulation In Java