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

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
How many objects are created in the code below? Explain.
How many types of drawing objects are available in drawing toolbar
Advertisements
Please explain this code as many packages and classes are unknown to me .!
code for creating Complex objects in Spring - Spring
Please write code for this program in java and Explain it ? pl'sssssssss
How to delete objects using Hibernate?
how many types of system classes are there?
How to Explain different way of using thread?
Please explain what is hibernatetemplate with an example code.
Explain about threads:how to start program in threads?
How to Explain different way of using thread?
what is jvm instance, how is it created, how is related to thread?
java code to compare two hash map objects
How to write create JPA Many-to-Many Relationship in Java?
how to display the output of the newly created excel file
how to validate values in the dynamically created textboxes?
how many ways to load the class in java
What are events? Explain how Event handling in Java?
JSP implicit objects
how the answer is 13 can anyone explain plz
How a split a file into many based on size?
Objects
code for recently created file from a folder in java - Java Beginners
explain the difference between string builder and string buffer classes
how many hours and minutes in 8725 seconds
how many ways are there to invoke a servlet object?
Video Tutorial - Classes and Objects in Java
Code for Garbage Collection
How many types of web hosting are available?
Explain how you overcame a major obstacle
One byte consists of how many bits?

Ads