Please I'm confused; I really cant differentiate between static and public static........ I have a code here to show
when I run this code with "(public) static void" in all the methods I still get the same result........so whats the difference? public class Sololearn { public static void main(String[] args) { add(5,5); sub(20,5); mult(5,4); div(15,3); } static void add(int sum1, int sum2){ int answer = sum1 + sum2; System.out.println(answer); } static void sub(int sum1, int sum2){ int answer = sum1 - sum2; System.out.println(answer); } static void mult(int sum1, int sum2){ int answer = sum1 * sum2; System.out.println(answer); } static void div(int sum1, int sum2){ int answer = sum1 / sum2; System.out.println(answer); } } /* OUTPUT IS: 10 15 20 5 */