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 common uses of "this" keyword in java ?
What is the purpose of using javap?
What are "methods" and "fields"?
What are the drawbacks of singleton class?
What is ascii format?
Explain the transient field modifier?
What is double word?
What do you mean by an object in java?
What is the synchronized method modifier?
What is split return?
What is ctrl m character?
What is final variable?
What is difference between static class and singleton pattern?
What is contractor means and methods?
What is the exact difference in between unicast and multicast object? Where we will use?