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

What is a linked list?

10 Answers   IBM, Neural Info,


Difference between vector and array

2 Answers  


Program to check whether a word starts with a capital letter or not.

1 Answers   Infosys,


what is object slicing?

9 Answers   L&T, Wipro,


What is the difference between an object and a class?

3 Answers  


A file pointer always contains the __________ of the file

5 Answers  


What is variable example?

0 Answers  


What is encapsulation oop?

0 Answers  


How do you achieve runtime polymorphism?

0 Answers  


What do you mean by overloading?

0 Answers  


what is mean by design pattern

4 Answers  


What is constructor in oop?

0 Answers  


Categories