Question: main method
Can I make multiple main methods in the same class?
If no then what will happen in compilation time?
No we can not make multiple main with in the same class program fails to compile. Compiler gives error that the main method is already defined in the class.