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
Who is founder of java?
What is bean? Where it can be used?
How do you override a method in java?
can rmi and corba based applications interact ?
How do you clear a list in java?
What is the difference between class & object?
Explain the term virtual machine?
How do you escape in java?
What are local variables?
What is data type in java?
How do you test a method for an exception using junit?
What is the purpose of sizeof operator?
What is memory leak and how does java handle it?
What is a two-pass assembler?
Objects or references which of them gets garbage collected?