If i have written two main()methods in a class,It's is compiled properly or not?pls see below exp
class demo
{
...........
............
Line 1: public static void main(
String arg[])
{
.... i have written some code..........
...........................
}
Line 2
ublic static void main(String arg[])
{
......... i have written some code.........
.............................
}
In the above program i have written two main() methods.It executed or not
If it is not executed what type of error i have get.
If it is executed second method(Line 2) code is executed?
pls give the response naa
thanks,
rajesh.