why in java first invoke public static void main(String args[])
method????Why not public static void method1(String args[])??

Answer Posted / amit

Becuase the main(String args[]) need not to call by user it
will be call automatically And method1(String args[]) need to
call user.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3099


What is polymorphism give a real life example?

755


What are two types of polymorphism?

800


How to hide the base class functionality in Inheritance?

836


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1975


Why multiple inheritance is not possible?

782


What is polymorphism and types?

825


What do you mean by overloading?

790


What is the diamond problem in inheritance?

807


what type of questions

1883


can we make game by using c

3708


What is cohesion in oop?

832


What are benefits of oop?

860


Why do we use polymorphism?

753


What is polymorphism and its types?

799