can we override the main() method in java????

Answer Posted / kapil

yes we can override the main method but different argument
bcz jvm always look for String[] args argument

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the main method?

765


How many bytes is a unicode character?

755


Which is faster string or stringbuilder?

724


What is string [] java?

750


What is the difference between overriding & overloading?

784


Explain a few methods of overloading best practices in java?

764


Can we change the value of static variable?

726


Explain method local inner classes ?

814


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

780


What are the java ide's? Explain

755


What is nested top-level class?

802


What does string intern() method do?

850


When do we use hashset over treeset?

784


Why do we need wrapper class?

762


Is string serializable in java?

778