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

what is the difference between public static int main() and public static int[] main() public static int main() function will return integer type data whereas public static int[] main() will return array of integer type data.

Core Java

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