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.
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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, 10 months agofvelazqueznava
Most Recent 8 months, 3 weeks agoVicky_65
1 year, 2 months agocarloswork
1 year, 7 months agocarloswork
1 year, 7 months agocarloswork
1 year, 8 months agokkaayyyy
1 year, 8 months agoiSnover
1 year, 8 months agoJoker74
1 year, 9 months agobabacandy
3 years, 8 months ago