could you run the java program without main method?
Answer Posted / naga
yes,we can write and run a java program without using the
main method.
i.e By using static
example program...!
public void static( )
public class
{
public void static( )
{
System.out.println( "Without main method" );
System.exit(0);
}
}
| Is This Answer Correct ? | 23 Yes | 22 No |
Post New Answer View All Answers
What are the topics in core java?
Does .length start 0 java?
What is the final class modifier?
What is tochararray in java?
What is a JAR file?
What do you understand by synchronization?
What is the main function in java?
What is a boolean field?
Explain the pointers in Java?
How is treeset implemented in java?
Why inputstreamreader is used in java?
What is backdrop?
Is linkedlist thread safe in java?
What is the meaning of course?
What is file in java?