In the below example, how many String Objects are created?
String s1="I am Java Expert";
String s2="I am C Expert";
String s3="I am Java Expert";
Answer Posted / hrindows@gmail.com
In the above example, two objects of Java.Lang.String class are created. s1 and s3 are references to same object
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to get a version of mysql?
What is 'mysqldump'?
Does uninstalling mysql delete database?
What are the differences between char and varchar?
How to concatenate two character strings?
What is the usage of "i-am-a-dummy" flag in mysql?
How to declare variable in mysql trigger?
How would you enter characters as hex numbers?
How do I optimize a selected query in mysql?
What is difference between mysql and mysql workbench?
What is orm in mysql?
Is mysql a server?
What are queries used for?
What does blob mean in mysql?
What is mysqli_connect_error ()?