what is the difference between public static int main() and public static int[] main()

what is the return type and how will we return value in both ghe cases

Your Answer

Its simple this return goes to OS/processor hence we just have to reutrn 0 in first case & return and array like int a[] return a; that will work;

Core Java

Didn't get the answer.
Contact people of Talent-Core Java directly by clicking here