File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
How many Object java will create
Joined: Jun 01, 2011
Jun 01, 2011 13:06:23
s1 = "abc";
String s2 = "def";
s1 = s1+ s2;
Joined: Oct 27, 2005
Jun 01, 2011 13:55:53
Welcome to the Ranch!
Why don't you start by telling us how many objects
think will be created? And if you want an answer, I suggest you
because this exact example has come up before a few times.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: How many Object java will create
How many String Object are created in the following code ??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015