Java quiz on comparing strings and stringbuffers

What will be the output of following quiz on comparing strings and stringbuffers?

 

Java quiz to compare strings
 

Answer

 
“false,true”
 

You may also like

Top 10 popular and tricky Java puzzles

Top Java articles : March 2016

Best 25 Java articles on the web in 2015

 
 

© 2016, https:. All rights reserved. On republishing this post, you must provide link to original post

Leave a Reply.. code can be added in <code> </code> tags