StringBuffer is a peer class of String that provides much of the functionality of strings. The string represents fixed-length, immutable character sequences while StringBuffer represents… Read More
Tag Archives: Java-Strings
Try to figure out the output of this code: public class Test { public static void main(String[] args) { System.out.println(45+5 + "=" +45+5); } }… Read More
String is a sequence of characters. In java, objects of String are immutable which means a constant and cannot be changed once created. Creating a… Read More
A string is a sequence of characters. In java, objects of String are immutable which means a constant and cannot be changed once created. Initialize… Read More
Till now in Java, we were playing with the integral part where we witnessed that the + operator behaves the same way as it was… Read More