While exploring the ArrayList class, I can't figure out the following part (constructor of the inner class Itr):
// prevent creating a synthetic constructor
Itr() {}
I kinda understand what the "synthetic stuff" in java is, but why do we need to prevent its creating?
Could you, please, explain some moments like is it necessary to do all the time, or there is some specific situation etc?