Here the method modifier is static because everything inside the static field will be static.So to call the method inside the main method ‘public static void main(String args[])’ we defined it as static.

Blog Stats

45,969 hits

Follow Blog via Email

Enter your email address to follow this blog and receive notifications of new posts by email.