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 methods are called, When we navigate from one applet to another applet?
Can interface be private in java?
Difference between this() and super() ?
what is difference between excute query ()and execute update ()?
What is the difference between preemptive scheduling and time slicing?
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?
What is e java?
How to make a non daemon thread as daemon?
What is Java exception handling?
Can I import same package/class twice?
What are green threads in java?
how cani read a command line argument?(usingfile object).