suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / kvk
two object will be saved in string constant pool
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the differences between stringbuffer and stringbuilder?
What steps are taken when the OS shifts from one-thread execution to another?
What is difference between stringbuffer and string?
Is linked list a linear or non-linear data structure?
Can we override private constructor in java?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
Are global variables initialized to zero?
Where import statement is used in a java program?
Explain what access modifiers can be used for variables?
I don’t want my class to be inherited by any other class. What should I do?
What is consumer in java?
Why set do not allow duplicates in java?
Is main a function?
Why is java called the platform independent programming language?
Is null function in java?