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

write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


What is destructor oops?

0 Answers  


define a string class. overload the operator == to compare two strings

2 Answers   Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,


what is the basic concept of inheritance?

9 Answers  


What is object and class in oops?

0 Answers  






What is interface in oop?

0 Answers  


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

0 Answers   HCL,


What is abstract class in oops?

0 Answers  


Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,


what is an instance of a class

5 Answers  


Why is static class not inherited?

0 Answers  


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


Categories