public class Boo {
Boo(){}
Boo(
String s){}
public static void main(String[] args) {
System.out.println("john".equals(new Boo("john")));//false
char[] unique= {'\u0030','\u0031'};
System.out.println(unique[0]); //how this is giving zero as output
}
}
According to me ans should be true and '\u0030' .Can someone explain.
Got stuck in these little one's after doing better in other section.