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

Differentiate CHAR_LENGTH and LENGTH?

571


Explain the difference between mysql_fetch_array(), mysql_fetch_object()?

453


What is the difference between truncate and delete?

589


How to show all records starting with the letters 'sonia' and the phone number '9876543210'

509


How many mysql connections can handle?

479






What are the functions of mysql?

454


How to dump one database for backup.

484


Why do we write stored procedures?

470


How many rows we can insert in a mysql table?

483


What are the 5 r's of managing behaviors?

611


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

491


what is database black box testing? : Mysql dba

573


How do I create a stored procedure in mysql?

487


What are the different types of triggers in mysql?

451


How can you create and drop view in mysql?

501