+ 1
why static method doesn't require object to invoke it? what happens if we call that by object( back end process)??
2 Antworten
+ 2
static methods are allocated with memory as soon as the Java program is loaded onto JVM. So it does not need a object to invoke it ,and it does not come under the memory allocated for an object .
0
if we call that by object it will work but it will leave a yellow bulb there meaning its not a good practice