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";



In the below example, how many String Objects are created? String s1="I am Java Expert"; ..

Answer / 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

More MySQL Interview Questions

What causes mysql too many connections?

0 Answers  


How to Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.

0 Answers  


What is heap table?

0 Answers  


In mysql, what is the default storage engine?

0 Answers  


Does mysql use sql?

0 Answers  






What are the column comparisons operators?

0 Answers  


How do I show users in mysql?

0 Answers  


What are the differences between binary and varbinary?

0 Answers  


What is maximum size of a database in MySQL?

13 Answers   Bastioncoup, CIS, NM, V2 Solutions, Wipro,


how to delete duplicate rows in sql server 2005?

2 Answers   EWIT, Reliance,


What is blob and text in mysql?

0 Answers  


What are all the Common SQL Function?

0 Answers  


Categories