How many objects are created in the code below? Explain.

Hi,

Here is my code

public static void main(String[] args) {String s1 = "abc"; StringBuffer s2 = new StringBuffer(s1); StringBuffer s3= s2; StringBuffer s4 = new StringBuffer(s1);}
View Answers









Related Tutorials/Questions & Answers:
Advertisements