±Û¾´ÀÌ :¼Û¿µÀÍ 1999³â 5¿ù 19ÀÏ 16:06:07
Q 1. What is the output of the following ?
StringBuffer sb1 = new StringBuffer("Amit");
StringBuffer sb2= new StringBuffer("Amit");
String ss1 = "Amit";
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2));
System.out.println(sb1.equals(ss1));
Ans: false false false
À§ÀÇ ´äÀÌ ¿Ö ±×·¸°Ô µÇ´ÂÁö ¸ð¸£°Ú¾î¿ä..
Á» °¥ÃÄ ÁÖ¼¼¿©..