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 |
Differentiate between array list and vector in java.
What is difference between hash mapping and hash table?
Differences between GridLayout and GridBagLayout?
What is the top class of AWT event hierarchy?
What is the role of the java.rmi.naming class?
What is ResourceBundle class?
How can we get one Interface methods whit out using implementation of interface
What is a function easy definition?
What do you mean by ordered and sorted in collections in java?
What is the use of list in java?
What is bufferedreader in java?
What is an abstract class and abstract method?