The main method in java should ___________.
Answer options
A
take boolean[] as argument
B
be public static
C
return int
D
be private static
Correct answer: be public static
Explanation
Correct answer: be public static.
Correct answer: be public static
Correct answer: be public static.
PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.