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



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

Answer / 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

More OOPS Interview Questions

explain dynamic binding by drowing

2 Answers   Cognizant,


Is abstract thinking intelligence?

0 Answers  


Have you ever used threads?

3 Answers   Adobe, IBM,


Why a "operator=(...)" when there is a copy ctor?

2 Answers  


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

0 Answers  






what is Class in oops with example?

4 Answers   HCL,


WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 Answers  


what is the difference between containership and inheritence?

1 Answers  


What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


what is overloading and overriding?

7 Answers  


What is encapsulation c#?

0 Answers  


What is encapsulation in simple terms?

0 Answers  


Categories