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 .!
Please write code for this program in java and Explain it ? pl'sssssssss
how many types of system classes are there?
Please explain what is hibernatetemplate with an example code.
How to delete objects using Hibernate?
Explain about threads:how to start program in threads?
How to Explain different way of using thread?
java code to compare two hash map objects
How to Explain different way of using thread?
How to write create JPA Many-to-Many Relationship in Java?
how many ways to load the class in java
what is jvm instance, how is it created, how is related to thread?
explain the difference between string builder and string buffer classes
how to validate values in the dynamically created textboxes?
JSP implicit objects
how to display the output of the newly created excel file
How a split a file into many based on size?
how to code
What are events? Explain how Event handling in Java?
Code for Garbage Collection
Video Tutorial - Classes and Objects in Java
how the answer is 13 can anyone explain plz
Objects
how many hours and minutes in 8725 seconds
how many ways are there to invoke a servlet object?
How many types of web hosting are available?
Explain how you overcame a major obstacle
One byte consists of how many bits?
how many max. arguments we pass to the any function ? how many max. arguments we pass to the any function ?

Ads