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
What methodology can be employed to locate substrings inside a string?
What is collections framework?
Explain enumeration in java?
What is the purpose of methodology?
What are streams in java 8?
Describe different states of a thread.
How does finally block differ from finalize() method?
What is class forname used for?
How to access arraylist elements in java?
Explain about main thread in java?
Explain different ways of creating a thread?
Can you call one constructor from another if a class has multiple constructors?
What is difference between float and double?
What is meant by method?
What is a parameter in matrices?