main() method must be declared static, main() method is called by Java runtime system before any object of any class exists.
Previous Question Next Question
Your comments will be displayed only after manual approval.