Can we write java program without using main method?
hai friends can anybody ask this question maximum people say no it is not possible
but it is possible
class A
{
System.out.println("without main method");
System.out.exit(0);
}
run it doesn't give any errors you try it
No comments:
Post a Comment