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

How to sort list of list in java?

881


Explain about serializable interface in java?

777


What is illegal identifier in java?

764


What are the features of junit?

825


What is try-with-resources in java?

855


How do you escape sequences in java?

809


Can we make constructors static?

957


What is difference between == equals () and compareto () method?

740


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

824


What are data types in programming?

756


What does replaceall do in java?

688


Explain numeric promotion?

814


Is char a method in java?

752


Why collection doesn’t extend cloneable and serializable interfaces?

878


What is main method?

774