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 is a heap table?

0 Answers  


What is mysql_query?

0 Answers  


What is memory table in mysql?

0 Answers  


Is mysql a free database?

0 Answers  


Can python connect to mysql?

0 Answers  






What is mysql_pconnect?

0 Answers  


What are the different mysql database engines?

0 Answers  


How do you restart mysql?

0 Answers  


What is the maximum length of a table name, database name, and fieldname in MySQL?

3 Answers   Accenture, Pioneer, TISL,


How internally data stores in MyISAM and INNODB table types?

0 Answers   Zensar,


What are mysql data types?

0 Answers  


What are the disadvantages of stored procedures?

0 Answers  


Categories