13.3 literal
Can we create StringBuffer object by literal?
- It is not possible to create StingBuffer object by using literal
- Even if we try to create we will get compile time error.
- So, creating StringBuffer object by using literal means its literally invalid
Invalid Syntax
StringBuffer stringBuffer = "Java"; // Invalid
Thanks for your time.
Nireekshan