只是为了知识, [英] just for knowledge,
本文介绍了只是为了知识,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在JAVA中我们可以运行没有main的程序()
ex
as in JAVA we can run a programme without main()
ex
class MainMethodNot
{
static
{
System.out.println("This java program have run without the run method");
System.exit(0);
}
}
这是可能的吗? programe没有Main()
IS this is possible in c# ? programe without Main()
推荐答案
HI,
Main()
是执行的开始或起点。如果main()
将丢失,那么compilor编译器将无法启动并将通过错误。
谢谢
Main()
is the begining or the starting point of the execution. If themain()
will be missing then Thecompilorcompiler will not get a place to start from and will through error.
Thanks
这篇关于只是为了知识,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文