To test:
public class Test {
public static void main(int[] args) {
System.out.println("int main " + args[0]);
}//main int
public static void main(Object[] args) {
System.out.println("Object main " + args[0]);
}//main Object
public static void main(String[] args) {
System.out.println("String main " + args[0]);
}//main String
}
Answer is C.
Note that the main method is being overloaded and is called from the command line. In this way, it is possible to perform this overload.
This can be tested by following what I'm saying.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
letmein2
Highly Voted 4 years, 5 months agofvelazqueznava
Most Recent 3 months, 1 week agoVicky_65
9 months, 2 weeks agocarloswork
1 year, 2 months agocarloswork
1 year, 2 months agocarloswork
1 year, 3 months agokkaayyyy
1 year, 3 months agoiSnover
1 year, 3 months agoJoker74
1 year, 4 months agobabacandy
3 years, 3 months ago