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 java in detail?
What do you understand by casting in java language?
What is a top level class in java?
What is jit and its use?
Explain treeset?
Can we overload run() method in java?
What is java used for?
What about anonymous inner classes in java?
Can list be null in java?
Can extern variables be initialized?
What are different types of control structures?
What is compareto () in java?
Which is fastest collection in java?
What is meant by inheritance and what are its advantages?
What is the function of character?