« first day (1148 days earlier)      last day (2327 days later) » 
04:00 - 18:0018:00 - 22:00

18:13
hi
18:44
Does String#concat return a String object or just a string literal ?
I mean if that concatenated string is already available in the string pool....
?
@TheLittleNaruto
> This methods returns a string that represents the concatenation of this object's characters followed by the string argument's characters
yes. That is from the JavaDoc. I read it. my that doesn't have an answer for my question
did you get what my question is?
Not really
Doc says that the method will return a String object
isn't it?
-|If the length of the argument string is 0, then this String object is returned. Otherwise, a new String object is created, representing a character sequence that is the concatenation of the character sequence represented by this String object and the character sequence represented by the argument string.
@CrazyNinja Yes
18:51
my question is, what if that concatenated string is already available in the string pool ?
Will it still create a new String object ?
What do you mean when you say "string pool" ?
He means DeadPool, but he doesn't know the comic that well
String literals will be stored in a string pool
@Joe'sMorgue nope :(
19:00
@CrazyNinja Sorry I was afk
@TheLittleNaruto np
See! The first thing is :
When you write String my_string = "abc";
That string literal "abc" is nothing but the object of the string
I know when it comes to practical world, the question i'm asking is totally a silly one. But I need to know this as I'm preparing for Java OCA exam
Let me explain!
So it means as soon as you assign a value to a String instance, that value becomes an object and is done by JVM
String my_string = "abc"; is NOT equal to
String my_string = new String("abc");
19:02
You don't have to use "new" keyword
yup. But if I use, it will forcefully create a separate object in Heap
True!
And same thing will be done if you don't use it and assign a value directly to it.
75
A: What is the difference between "text" and new String("text")?

polygenelubricantsnew String("text"); explicitly creates a new and referentially distinct instance of a String object; String s = "text"; may reuse an instance from the string constant pool if one is available. You very rarely would ever want to use the new String(anotherString) constructor. From the API: Str...

so, now let's come back to my original question
13 mins ago, by Crazy Ninja
my question is, what if that concatenated string is already available in the string pool ?
The object won't be created; instead new string literals will get appended with the existing one.
@TheLittleNaruto Okay !
19:12
@CrazyNinja Thank you! I din't know about that String Pool thing.
@TheLittleNaruto Everyone is here to learn :)
Sure :)
@joe Which song is your favorite ?
19:24
@TheLittleNaruto may be @joe singing in the shower right now :P
heh
I have got no idea. lol
@TheLittleNaruto just answer some questions in SO
@CrazyNinja Asking me to give some answers ?
@TheLittleNaruto yes. I guess you are good in android. Just try for few. you will get few extra rep. :D
hehe
I really stopped answering.
19:38
Favorite song depends on mood.
Metallica's One is quite often up there, sometimes video version, others S&M version.
Hurt, by Johnny Cash is up there.
Not Metallica
Yes, Metallica
No!
@Joe'sMorgue I like this type of songs.
Slow and melody!
@Joe Have you heard this one: youtube.com/watch?v=Qt2mbGP6vFI ?
20:07
yes, Metallica :p
though I haven't listened to them for some time
:/
@berserk @DroidDev Did you guys watch the movie yet : animenova.org/boruto-naruto-the-movie-2015 ?
.-.
ohh i love these 8 gb free traffics :d
20:24
posted on December 30, 2015 by Reto Meier

Sarah Clark, Program Manager, Google Developer Training Front-end web developers face challenges when using common “asynchronous” requests. These requests, such as fetching a URL or reading a file, often lead to complicated code, especially when performing multiple actions in a row. How can we make this easier for developers? Javascript Promises are a new tool that simplifies asynchronous c

That is a great song...
Like I said... MOOD is a major...
The Beautiful Ones
Careless Whisper
Welcome to the Jungle
Patience
Dragula
Coat of Many Colors
21:01
@Joe true! Mood is major!
I'll listen those songs that you shared
04:00 - 18:0018:00 - 22:00

« first day (1148 days earlier)      last day (2327 days later) »