GeekInterview.com
Home
Tech Articles
Code Samples
Learn
Freelance Projects
Online Testing
Geek Talk
Job Postings
Knowledge Base
Geek Blogs
Question Bank
Interview Questions
Certification
Placement Papers
Tech FAQ
Career Advice
Engineering
Ask Question
I am new,
Sign me up!
User Name
Remember Me?
Password
Interview Questions
Certification
Placement Papers
Tech FAQ
Career Advice
Engineering
Ask Question
GeekInterview.com
>
Interview Questions
>
J2EE
>
Core Java
Go To First
|
Previous Question
|
Next Question
Core Java
| Question 416 of 502
Print
Compare String object with StringBuffer object.
Total Answers and Comments:
4
Last Update: February 22, 2008 Asked by:
kumarprc
Sponsored Links
Best Rated Answer
—
No best answer available. Please pick the good answer available or
submit
your answer.
July 17, 2007 07:03:42
#1
Fazila
RE: Compare String object with StringBuffer object.
We can change the value of string buffer object even after its creation. But the string object once created cannot be modified but can be manipulated.
Is this answer useful?
Yes
|
No
July 19, 2007 15:01:21
#2
kumarprc
Member Since: July 2007 Contribution: 3
RE: Compare String object with StringBuffer object.
suppose i write code as follows:
String s1 "abs";
StringBuffer s2 "abs";
System.out.println(s1.equals(s2));
what will be the output?
Is this answer useful?
Yes
|
No
August 04, 2007 09:20:16
#3
sujatham
Member Since: January 2006 Contribution: 142
RE: Compare String object with StringBuffer object.
The String class implements immutable character strings which are read-only once the string has been created and initialized whereas the StringBuffer class implements dynamic character strings.
Is this answer useful?
Yes
|
No
February 22, 2008 06:24:36
#4
sampra
Member Since: February 2008 Contribution: 278
RE: Compare String object with StringBuffer object.
string obj are immutabble where as String buffer obj are mutable
Is this answer useful?
Yes
|
No
Go To Top
Sponsored Links
Related Categories
—
Core Java Interview Questions
EJB Interview Questions
Hibernate Interview Questions
Java Interview Questions
Java Patterns Interview Questions
JDBC Interview Questions
JMS Interview Questions
JSP Interview Questions
Java OOPS Interview Questions
Ruby Interview Questions
Servlets Interview Questions
Spring Interview Questions
Struts Interview Questions
Websphere Interview Questions
Sponsored Links
Featured Free Offers
Request Your Copy
Request Your Copy
Request Your Copy
About Us
-
Privacy Policy
-
Terms and Conditions
-
Contact
-
Ask Question
-
Propose Category
-
Site Updates
Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved