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

Explain timestamp?

0 Answers  


When to use order by in delete statement?

0 Answers  


What are the two types of queries?

0 Answers  


What happens when the column is set to AUTO INCREMENT and if you reach maximum value in the table?

0 Answers  


What are the 'mysql' command line arguments?

0 Answers  


What are triggers in mysql?

0 Answers  


Can foreign key have duplicate values?

0 Answers  


What is mysql server used for?

0 Answers  


Can I use mariadb instead of mysql?

0 Answers  


How do you index just the first four bytes of the column?

2 Answers  


How can we run batch mode in mysql?

0 Answers  


Is mysqli deprecated?

0 Answers  


Categories