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 |
Is double bigger than float?
What are the Abstract Classes provided by Java?
what is the significance of listiterator in java?
What is purpose of keyword void?
Why main method is static in java?
How many types of memory areas are allocated by jvm?
How do you check if a number is a perfect square?
HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?
What do you mean by Hash Map and Hash Table?
Do I need java on my pc?
what is webservices
5 Answers Consultancy, Mind Tree,
Is static a singleton?