Which of the following will compile successfully?
StringBuffer sb = "Hello";
No, it will not compile
Yes, it will compile
Yes, but with a warning
Only if sb is declared as final
This question is part of this quiz :