O'Reilly logo
  • Dirgni Yordania Mayen thinks this is interesting:

Since the main() method is in the same class, it can call private methods in the class.


Cover of OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808


How would I assume that both are on the same class (constructor and main method) if now code is shown?