0

why static keyword is necessary to declare a method? like static void circle()

24th Sep 2016, 6:48 AM
Mahadev Chinchole
Mahadev Chinchole - avatar
1 Odpowiedź
0
The use of static keyword while declaring a method lets you invoke the method without creating an instance of it. Example:- static keyword is use in the main method which the entry point of a Java program. This helps in starting the Java program for the very first time without actually instantiating it.
27th Sep 2016, 8:46 AM
ATONU GHOSH