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
Java Compiler is stored in JDK, JRE or JVM?
What is a void in java?
What are methods in java?
Difference between concurrent hashmap and hashtable and collections
How many types of threads are there in java?
What is core java called?
Can a private method be declared as static?
Explain the different forms of polymorphism?
When should you use arraylist and when should you use linkedlist?
Does .length start 0 java?
What do you mean by pointer value and address?
What is tostring () method?
Explain about the dynamic behavior of core java?
What is keyword and identifier?
How to reverse a string in java?