can you use the two main method in same class?how?

Answer Posted / sanjay kalamdhad

yes,we can do it by method overloading concept in .net too but with using different signature.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is hashcode calculated in java?

734


What do you mean by global variable?

728


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

818


What is extension method in java?

814


What is jvm? How its run?

888


What is a flag variable?

748


What are the data types supported by java? What is autoboxing and unboxing?

780


What is illegal identifier in java?

778


What is meant by overloading?

830


What are the types of casting?

842


Explain a situation where finally block will not be executed?

789


What are inbuilt functions?

761


What is size of int in java?

813


Which sort is best in java?

754


How does java pattern compile work?

760