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.
Answers were Sorted based on User's Feedback
Answer / ss
String s1="java";
String s2="java";
System.out.println(s1.equals(s2)); -->true
System.out.println(s1==s2); --->true
| Is This Answer Correct ? | 6 Yes | 3 No |
What is the nested interface?
What does || || mean in math?
What are the traverses in Binary Tree?
What do you mean by multithreaded program?
Can you override static methods?
What does ide stand for?
how to fing linkedlist is circular or not?
How do I get a substring?
How can we make string upper case or lower case?
How do I write a self declaration?
What is class and its types?
Does constructor return any value?