Tag Archives: String X

JAVA Assignments – Strings in JAVA 10th Class notes – ICSE JAVA Notes

JAVA Assignments – Strings in JAVA 10th Class notes – ICSE JAVA Notes Important Questions What is the difference between a String object and a String Buffer object ? What do the following functions return for : String x = “Hello”; String y= “World”; System.out.println(x+y); System.out.println(x.length()); System.out.println(x.charAt(3)); System.out.println(x.equals(y)); Differentiate between toLowerCase() and toUpperCase() methods ? […]

append(x) in JAVA – JAVA 10th Class notes – ICSE JAVA Note

append(x) in JAVA – JAVA 10th Class notes – ICSE JAVA Notes append(x ) : append(x ) function lets you add String x at the end of the other String. Syntax : str1.append(str2); Example : StringBuffer str1 = new StringBuffer(“COMPUTER”); StringBuffer str2 = new StringBuffer(“ APPLICATION”); str1.append(str2);   Output : COMPUTER APPLICATION   /* Program […]