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

Answer Posted / shreedream

yes

in java language support the method Overloading, so we can
use the two main method in same class but it should have
different parameter list?

Is This Answer Correct ?    45 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain java coding standards for constants?

800


Is arraylist ordered?

795


How do you convert an int to a string in java?

815


What do you mean by mnemonics?

777


What are constants?

824


What are aggregate functions explain with examples?

810


How to set the permissions to a file in java?

771


Can a constructor have different name than a class name in java?

852


Name few java util classes introduced with java 8 ?

727


What is finally and finalize in java?

814


Can we create an object of static class in java?

815


Difference between static synchronization vs. Instance synchronization?

839


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

761


What is flush () in java?

789


What is the properties class?

833