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
Why you should not use singleton?
Why is the type for real numbers called double?
Explain the difference between private, public, package and protected in java?
What is module in oop?
How many tetrahedral voids are there in bcc?
What do you mean by a JVM?
What is output buffer?
Explain the features of interfaces in java?
What is callablestatement? How you can call stored procedure to pass in parameter?
Can constructor be inherited?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
difference between byte stream class and character stream class?
What is the old name of java?
How are java objects passed to a method and what are native methods?
Why is java called java?