Java / Using String
Can we compare String and StringBuffer objects in Java?
Although both String and StringBuffer represent String objects, we cannot compare each other and if we try to compare them, we get an exception.
More Related questions...
New software-engineering topics and practical interview questions.
Follow @javapediaNetAlthough both String and StringBuffer represent String objects, we cannot compare each other and if we try to compare them, we get an exception.
More Related questions...
System.out.println ("A"=="A");
|
Interviews Questions |
About Javapedia.net Javapedia.net is for Java and J2EE developers, technologist and college students who prepare of interview. Also this site includes many practical examples. This site is developed using J2EE technologies by Steve Antony, a senior Developer/lead at one of the logistics based company. |
||
| contact: javatutorials2016[at]gmail[dot]com | |||
| Kindly consider donating for maintaining this website. Thanks. |
|||
|
Copyright © 2026, javapedia.net, all rights reserved. Privacy Policy · Terms of Service. |
|||