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


Please Help Members By Posting Answers For Below Questions

State the differences between mongodb and mysql.

786


What are mysql functions?

691


How do I edit a trigger in mysql?

653


What is max connections in mysql?

689


How many triggers are possible in mysql?

735


What could be the reason that the mysql statement 'select avg (salary) from emp' generates an inaccurate output?

692


how you will Create a database on the mysql server with unix shell.

752


How to use like conditions?

730


How many rows can mysql handle?

707


Is mysql a database?

685


What is mysql workbench used for?

732


How to enter boolean values in sql statements?

749


What is truncate command?

649


What is mysql connection limit?

693


What is the difference between truncate and delete?

795