Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners String and String Buffer Class
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Janki
String and String Buffer Class
1 Answer(s)      3 years and 9 months ago
Posted in : Java Beginners


difference between String and String Buffer Class


Advertisement
View Answers

February 21, 2011 at 4:13 PM


Difference between String and StringBuffer

1) String object is immutable whereas StringBuffer objects are mutable.

2) String objects are constants whereas String buffer objects are not constants but growable.



Related Tutorials/Questions & Answers:
(ii) String and String Buffer Class
(ii) String and String Buffer Class  difference between String and String Buffer Class
(ii) String and String Buffer Class
String and String Buffer Class  differences between : String and String Buffer Class
Advertisements
(ii) String and String Buffer Class
String and String Buffer Class  difference between String and String Buffer Class... whereas String buffer objects are not constants but growable
Java string buffer
Java string buffer  what is stringBuffer and StringBuilder
Java string buffer
Java string buffer  What is the basic difference between string and stringbuffer object
please clarify regarding capacity method of my below string buffer class example
please clarify regarding capacity method of my below string buffer class example  hi here is the program below: > import java.lang.*; public class > Compare{ public static void > main(String[] args) { >
explain the difference between string builder and string buffer classes
explain the difference between string builder and string buffer classes  Hi, Here is my code public static void main(String[] args) { String s1 = "abc"; StringBuffer s2 = new StringBuffer(s1); StringBuffer s3 = s2
String Class implementation in API
String Class implementation in API  Hi all, I was confused ,when am looking into java String class single argument constructor into that we... we send String as argument for String class
String tokenizer class
String tokenizer class  Hai... What is string tokenizer class? & what's its purpose
String tokenizer class
String tokenizer class  Hai... What is string tokenizer class? & what's its purpose
String tokenizer class
String tokenizer class  Hai... What is string tokenizer class? & what's its purpose
Determine if string is in class
and a Car class. The string is the name of the car, which i have multiple in my linked.... import java.util.*; class Car { private String name; private int price...; } } public class CarsList { public static void main(String args
string
string  a java program using string function to input any string and print the same in alphabetical order   import java.util.*; class ArrangeStringAlphabetically { public static void main(String[] args
String
String  how to add spaces with string functions.?   Hi Friend, Try the following code: class AddSpacesToString { public static String addSpaceToRight(String s, int n) { return String.format("%1$-" + n + "s
String
characters in string?   import java.util.*; class RemoveDuplicateCharatcersFromString { public static String removeDuplicates(String s... < s.length(); i++) { String st = s.substring(i, i + 1
string
Friend, Either you can use split() method: import java.util.*; class ExtractWords { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.print("Enter String
string
; public class StringTest { public static void main(String [] args...string   just i want to a program in a short form to the given string in buffered reader for example input string: Suresh Chandra Gupta output: S. C
string
*; import java.io.*; public class FirstLetter{ public static String capitalizeFirstLetter( String str ) { final StringTokenizer st = new StringTokenizer( str...string  a java program to input a string and display the string
string
and also displaying that contain word? Like I want to find "a" in the string... and a character. It then count the occurrence of that character in the string and display the words that contains that character. import java.util.*; public class
STRING.....
STRING.....  plzz sent me d code for counting vowels in a string... gui programme
string
string  program for String reverse and replace in c,c++,java... code: import java.util.*; class ArrayReverse { public static void main(String[] args) { String array[]=new String[5]; Scanner input
string
string   difference detween "public static void main (String[] args) " and "public static void main (String args[])" in java but it executes both... "String args[]" can mean a "string array called args which is an array
string
string  String helloString = new String(helloArray); System.out.println(helloString); i am unable to understand this. could u plz explain
String
String  write down the code of remove any character from a given string without using any string function   please give me the code of remove any given character from a given string without using function
String
String  how to print in between numbers if the question "String s = "1,2,3,4,5,6,8,-25"" out must be 1 2,3,4,5,6,7,8,9,10,upto25
String
String  How to Convert sunnapu gopal to Sunnapu Gopal in java using String
String
String  write a program using string it should replace 'c'char to integer number as 1 in whole source
string
string  java prgm to find total occurence of a given string pattern in a sentence
string
string  java prgm to find total occurence of a given string pattern in a sentence
string
string  write a program to accept the string and store the reverse stream into another array and print
string
string  a java program using string function that computes your initials from your full name and display them   Please visit the following links: http://www.roseindia.net/tutorial/java/core/printInitials.html http
Advertisements
 

 

 

DMCA.com