best answer > Can I have a main method in interface 2024?- QuesHub | Better Than Quora
  • Can I have a main method in interface 2024?

    can main method interface

    Questioner:Emily Nguyen 2023-06-09 06:42:28
The most authoritative answer in 2024
  • Benjamin Taylor——Works at the International Energy Agency, Lives in Paris, France.

    With Java-8 you can have main method defined inside the interface, Below code will work in Java-8. Yes you can overload main() method, but when you launch your class, only the public static void main(String args[]){} method will be treated as an entry point.Mar 14, 2012read more >>
    +119962023-06-11 06:42:28

About “can、main method、interface”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消