Is there is any error if you have multiple main methods in
the same class?

Answer Posted / harathi

We can have multiple main methods with different
arguments.Compiler throws an error if we have a method
similar to public static void main(String args[])

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean data type in java?

570


a thread is runnable, how does that work? : Java thread

515


What is stack class in java?

548


What is the format specifier?

517


What will be the initial value of an object reference which is defined as an instance variable?

647






What interface is extended by awt event listeners?

597


How hashmap increases its size in java?

495


What is thread start?

526


What is the difference between JDK and JVM?

635


What is instance synchronization?

550


What is the original name of java?

544


Is it possible for a yielded thread to get chance for its execution again?

516


Can we define constructor in inner class?

545


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1465


What is the difference between inner class and nested class?

555