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 difference between abstract class and interface?
java is fullu object oriented or pure? why?
what is the difference between pagecontext and servletcontext?
What are identifiers in java?
Can we write multiple catch blocks under single try block?
Explain the concept of hashtables?
What is currentthread()?
what are the differences between final,finally,finalize methods?
What do you understand by soft reference?
i need source code for income tax program using java inheritance
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion
What is left shift and right shift?