sitestree.com
Statics.java Demonstrates static and non-static methods.
*/ public class Statics { public static void main(String[] args) { staticMethod(); Statics s1 = new Statics(); s1.regularMethod(); } public static void staticMethod() { System.out.println("Thi…