Why is the main method static?
Because the object is not needed to call the static method. If we don't make the main method static, JVM must first create its object and then call the main () method, which leads to additional memory allocation. https://www.exltech.in/java-training.html
Posted by preetiagarwal 2019-06-03 23:42:17
No Ans Posted
Recent Links
- Random Clustering model -CppBuzz-Forum..
- C_Size-CppBuzz-Forum..
- value =-CppBuzz-Forum..
- reverse Function in C prog-CppBuzz-Forum..
- Mingw download with no installer-CppBuzz..
- Python Online Training-CppBuzz-Forum..
- function compare_to_interval-CppBuzz-For..
- rectangle.c -CppBuzz-Forum..
- Converting for loop to while loop-CppBuz..
- How to remove the (*) as we reach the en..
- more..