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
Can we catch more than one exception in a single catch block?
What is a bubble sort in java?
How do you make an arraylist empty in java?
What does replaceall do in java?
What is the exception hierarchy in java?
What are peerless components?
How many types of classes are there in java?
List some oops concepts in java?
What do you mean by formatting?
What is a string what operation can be performed out with the help of a string?
How to display names of all components in a Container?
What is indexof?
Why inputstreamreader is used in java?
What is unicode used for?
What is the abstract class?