Question: what is the difference between public void and private void?
Answer: The keywords 'public' and 'void' designate different things about a method; they are not related to the same concept. ... There are other designations -- private and protected -- that mean other things; private, for instance, designates a method that can only be called from within the class in which it is declared.