Core Java Interview Questions For Selenium WebDriver – Part 3
Part 3 11 : Why main method is static? Answer : As we know, We can access static stuff without creating object of class. Because of static keyword with main method, Java virtual machine can directly call it without creating object of class. This way it will provide kind of root to start execution of program. 12 : What is … Read more