Detailed Instructions: Here are two questions (Question1 and Question2). If these questions have the same meaning and same answer, answer "Yes", otherwise "No".
Problem:Question1: Why the main function is always declared in a class in Java?, Question2: Why do we write the main method in a class in Java?
Solution:
No