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
What is boolean data type in java?
a thread is runnable, how does that work? : Java thread
What is stack class in java?
What is the format specifier?
What will be the initial value of an object reference which is defined as an instance variable?
What interface is extended by awt event listeners?
How hashmap increases its size in java?
What is thread start?
What is the difference between JDK and JVM?
What is instance synchronization?
What is the original name of java?
Is it possible for a yielded thread to get chance for its execution again?
Can we define constructor in inner class?
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
What is the difference between inner class and nested class?