Computer Science, asked by shivcivil2018, 21 hours ago

Is the below statement correct? private static void main(String args[]) { }

Answers

Answered by vamsi9559
1

Answer:

yes

Explanation:

mark me as a genius because i am a intelligent person

Answered by anvitanvar032
0

Answer:

The correct answer to this question is not correct.

Explanation:

Given - private static void main(String args[]) { }

To Find - Is the statement correct?

The statement is not correct.

private static void main(String args[]) { }

We should use public in the command because it changes how the main program is accessed and allows the main method to be executed when the Java program is running.

The Java command to invoke the main method is public static void main(string args[]).

An array of characters or strings will be sent to the main program in a sequential fashion in this case, as indicated by the command string args[].

#SPJ2

Similar questions