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

i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

0 Answers  


What makes a language oop?

0 Answers  


Program to check whether a word is in all capital letters

1 Answers  


Write a program to demonstrate the use of 'Composition' in C++

2 Answers  


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

1 Answers  






tel me oops defination in single line

2 Answers  


What is basic concept of oop?

0 Answers  


What is cohesion in oop?

0 Answers  


#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }

2 Answers   TCS, Wipro,


What is the types of inheritance?

0 Answers  


all about pointers

2 Answers  


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

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


Categories