public class MyOverload {
public static void main(String[] args){
char[] a = new char[]{'a','b','c'};
System.out.println(String.valueOf(a));
Object o = new char[]{'a','b','c'};
System.out.println(String.valueOf(o));
}
}
The result is
abc
[C@194fa3e
No comments:
Post a Comment