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

What is the purpose of using break in each case of switch statement?

776


What are bind parameters?

760


What is the difference between static class and normal class?

749


List down the methods and interfaces of collection class in java.

757


What are the various access specifiers in java?

753


What’s a deadlock?

845


How do you use compareto in java?

746


What do you mean by of string::valueof expression in java 8?

750


Can we split string with in java?

747


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

876


What is variable and rules of variable?

755


What is field name?

776


What is the purpose of stub and skeleton?

755


Define how can we find the actual size of an object on the heap?

898


What happens when main () method is declared as private?

853