Object Oriented Programming Questions & Answers | OOP | MCQ
Object Oriented Programming | OOP | MCQ 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)); System.out.println(“Poddar”.substring(3)); Ans: a) false false false dar b) false true false Poddar c) …