Q1. Write a Java program that print 'Hello World!'Q2. Explain the purpose of the main method in Java.