The public static void main(String[] args) // starting a program in Java is one of the strange line for Java beginners. It automatically trigger a question, why its like that. Compared to void main() // starting a program in C in C which are much simpler. So what does it means? First of all lets…