Home Answers Viewqa Java-Interview-Questions How many objects are created in the code below? Explain.

 
 


Parvathambal
How many objects are created in the code below? Explain.
0 Answer(s)      a year and a month ago
Posted in : Java Interview Questions

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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.