suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?

Answer Posted / ravikiran

two objects will be saved in the heap

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define jit compiler?

659


Can a private method be declared as static?

579


What is the basic difference between string and stringbuffer object?

580


Is map ordered in java?

533


What is assembly used for?

502






How to make a class or a bean serializable?

537


What are predefined functions?

577


Why string is not thread safe?

541


How to set the permissions to a file in java?

536


Which is better singleton or static class?

506


What is a text string?

620


Differentiate between a constructor and a method? Can we mark constructors final?

675


What is pre increment and post increment in java?

499


What is mean by collections in java?

564


How many techniques can be employed to create a string object?

554