public static void main(String[] args) {
char[] c = {'a', 'b'};
if(isRealObject(c)){
System.out.println("char array is real object");
}else{
System.out.println("char array is not real object");
}
if(isRealObject(new C())){
System.out.println("C is real object");
}else{
System.out.println("C is not real object");
}