Can I invoke a java method other than main(String[]) from the command line?

后端 未结 8 535
夕颜
夕颜 2020-11-30 09:35

Can I invoke a java method other than main(String[]) from the command line?

8条回答
  •  我在风中等你
    2020-11-30 10:12

    No, that is not possible.

    Please see the Java language specification

    http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html

    Ofcourse applets and servlets and other technologies may have different starting points.

提交回复
热议问题