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
How many bytes is 255 characters?
What is meant by singleton class?
What are the three best choices for a development environment?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What is the use of parse function in java?
Explain java coding standards for methods?
What is dynamic array in java?
How dead lock situation occurs in java and how you can identify it?
What about static nested classes in java?
What invokes a thread's run() method in java programming?
In which language java is written?
What data type is string java?
What is getclass () getname () in java?
Why for each loop is used?
What is the method overriding?