when i write
string s1="java";
in one program(application) and
string s2="java";
in another application
on the same jvm will both objects s2,s2 will refer to same
memory location where "java" is stored
in string pool.
Answer Posted / tj
Yes,They will refer to same memory location..
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
If you are given the name of the function at run time how will you invoke the function?
Can arraylist contain null values?
who can i handle multiple client in RMI
Is string a datatype?
Why is String immutable?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What do you mean by aggregation?
What is the final method?
Can we declare the main method of our class as private?
What is valid keyword in java?
What is the difference between compare and compareto in java?
What is a bubble sort in java?
Is empty in java?
What are peerless components in java programming?
Define locale.