Answer Posted / srinivaskumar.nimmana
Yes, we can... like this,
public static void main(String[] args){....}
pulbic void main(int a){....}
public static int main(flaot f){....}
public String main(string s){....}
in the above code public static void main(string[] args) executed as thread remaining methods are normal methods in our java class. in jvm p.s.v.main(string[] args) defined with thread so jvm always search for this syntax only.any other main() with diffrent parameters are consider as normal method
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a finally block?
what is bmg file and how to create that files?what will it contailn?
What is the use of static class?
What are the topics in advance java?
What does the @override annotation do?
Is there a case when finally will not execute?
What is string variable?
Why do we need singleton?
What is the synonym of string?
Why is java multithreaded?
Which of the classes will have more memory allocated?
Can we create constructor in abstract class ?
How does finally block differ from finalize() method?
Is singleton a bad practice?
Detail discussions on JVM, memory management and garbage collector.