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
Is arraylist zero based?
Is empty string in java?
What are the different types of collections in java?
What do you know about the garbage collector in java?
Can constructor return value?
What is a constructor overloading in java?
What is the difference between array list and vector in java?
What is default constructors?
Explain the difference between private, public, package and protected in java?
What is an empirical question?
What is file in java?
What is maximum size of arraylist in java?
How destructors are defined in java?
What is the final keyword?
What is the purpose of abstract class?