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
Difference between character constant and string constant in java ?
Why for each loop is used?
List the interfaces which extends collection interface?
What do you understand by overloading and overriding in java?
Explain the difference between call by refrence and call by value?
Which class is used by server applications to obtain a port and listen for client requests?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Explain about doubly linked list
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What are the advantages and disadvantages of object cloning?
Can we write any code after throw statement?
How is java created?
How we can execute any code even before main method?
What is unicode used for?
What is binary tree in java?