Answer Posted / aashish r. wadhokar
string is immutable,that we can not be modify its value.
when we assign any new value to String variable.a new object
is created on heap memory and that string variable refers to
that object.
whereas
StringBuffer is mutable so we can be modify its value.
as it refers to the same object and changes the state of
that object
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
my interviewer asked me what technical specification you used how to answer that question
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
Should we create system software ( e.g operating system ) in java ?
What is the difference between comparable and comparator in java.util pkg?
What is java collection? : java collections
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What are the interfaces in java collections? : java collections
What do you understand by synchronization? Why is it important?
What is an algorithm in java collection framework? : java collections
What is the enumerator of the java collection framework? : java collections
What is deque in the java collections framework? : java collections
What are the differences between the java collection and the java list? : java collections
What are the main classes of the list interfaces? : java collections
What is the use of hashcode in java ?