Home Tutorialhelp Comment Good concept

 
 

Comment

Manohar
Good concept,
November 7, 2007 at 10:02 AM

Mostly asked in interviews , string vs stringbufffer . gv more basic understanding.
while briefing just link the concept with the relative cincepts like collections in this case.
View All Comments | View Tutorial
Related Tutorial and Articles
Java Beginners

stringbuffer - Java Beginners
://www.roseindia.net/java/beginners/StringBuffer.shtml http://www.roseindia.net/java/beginners/ Thanks... DeleteString { public static void main(String args[]) { StringBuffer sb = new 

Java Beginners

String and StringBuffer - Java Beginners
; Hi vijay Java provides the StringBuffer and String classes... information. http://www.roseindia.net/java/beginners/StringBuffer.shtml.... Simply stated, objects of type String are read only and immutable. The StringBuffer 

Java Beginners

StringBuffer - Java Beginners
StringBuffer  Can any one help with this naughty problem? Replacing a character with two characters in a StringBuffer. Replacing a character...;} converting the StringBuffer using charArray[] also worked well, but not where 

Java Beginners

StringBuffer - Java Beginners
StringBuffer  Hi, Thank you so much for answering my previous question regarding StringBuilder And StringBuffer. But,while using more than one...-threaded applications(i.e. StringBuffer)? Please give example(code) and explain 

Java Beginners

String and stringbuffer object - Java Beginners
String and stringbuffer object  Hi, What is the basic difference between string and stringbuffer object? Thanks   Hi Friend... be changed while StringBuffer class is used to represent characters that can 

Java Beginners

'String' vs 'StringBuffer' - Java Beginners
'String' vs 'StringBuffer'  What should i use String or StringBuffer?  Hi, First you need to rectify the question. Because StringBuffers... StringBuffer when you are append different data to the same StringBuffer object 

Java Beginners

StringBuilder v/s StringBuffer - Java Beginners
()); } }}------------------------------------read for more information,http://www.roseindia.net/java/beginners... between StringBuilder & StringBuffer classes. I know that StringBuffer... inefficient. StringBuilder (or StringBuffer) are better choices in these cases 

Java Beginners

StringBuilder v/s StringBuffer - Java Beginners
(); System.out.println(str); StringBuffer read = new StringBuffer("I JAVA."...... Threads run simultaneously. But in case of BOTH StringBuilder & StringBuffer... in all respects to StringBuffer except that it is not synchronized, which means 

Java Beginners

which data structure is good in java..? - Java Beginners
which data structure is good in java..?  Hi frends, Actually i... and vector ...etc........ i wanted to know, which technique is good to store... anyone give me good example how that best technique i can use in my programs 

Java Beginners

concept Understatnding problem - Java Beginners
concept Understatnding problem  Even though I have studied in detail inheritance & interfaces in java , I fail to understand "How Interfaces Help in Multiple Inheritance ?" . Pls. Supplement ur ans. with an example. Thanx 

Java Beginners

Java + Timer concept - Java Beginners
Java + Timer concept  sir, I am using swing based model. My form contains one Jbutton its called "polling(function name is getvalue())". I have... concept.  Hi Friend, Try the following code: import java.awt. 

Java Interview Questions

StringBuffer
StringBuffer  What's the difference between these two formats? String string=args[0]; String reverse = new StringBuffer(string).reverse().toString(); String string=args[0]; StringBuffer rev = string.reverse(); String 

Java Beginners

OOPS Concept Abstraction with example - Java Beginners
OOPS Concept Abstraction with example  I am new to java. In java OOPS concept Abstraction means abstract or something. Please explain it with one example  Hi Friend, The process of abstraction in Java is used 

Java Tips and Examples

StringBuffer and StringBuilder
Java NotesStringBuffer and StringBuilder StringBuffer is used to store.... StringBuilder was added in Java 5. It is identical in all respects to StringBuffer except... in the java.lang package. StringBuffer and StringBuilder methods and constuctors 

Java Tips and Examples

Java - StringBuffer class in Java
Java - StringBuffer class in Java       In this example you will learn about StringBuffer class. This example explains how you can use functions provided by the StringBuffer 

Java Beginners

BRICK-BREAKER game concept - Java Beginners
 

Java Beginners

Hi good afternoon
Hi good afternoon  write a java program that Implement an array ADT with following operations: - a. Insert b. Delete c. Number of elements d. Display all elements e. Is Empty 

Java Beginners

HOW TO BECOME A GOOD PROGRAMMER
HOW TO BECOME A GOOD PROGRAMMER  I want to know how to become good programmer   Hi Friend, Please go through the following link... learn java easily and make a command over core java to proceed further. Thanks 

Java Beginners

IO concept
IO concept  Write a java program that moves the contents of the one file to another and deletes the old file.   Hi Friend, Try...!"); } } For more information, visit the following link: Java Move File Thanks 

Swing AWT

Good Looking Java Charts and Graphs
Good Looking Java Charts and Graphs  Is there a java chart library that will generate charts and graphs with the quality of visifire or fusion charts? The JFreeChart graph quality is not professional looking. Unless it can 

Java Interview Questions

Java Inheritance Concept.
Java Inheritance Concept.  Yesterday i got confused with following question in an aptitude exam. Question:Class A,B,C have method named doit(). Class B extends Class A,Class C extends Class B.How will you call method doit 

Java Beginners

Explain the concept of thread priorities in Java.
Explain the concept of thread priorities in Java.  Explain the concept of thread priorities in Java 

Java Interview Questions

StringBuffer related.
StringBuffer related.  how to make StringBuffer as immutable 

Java Tips and Examples

Creation of StringBuffer
Creation of StringBuffer      ... we have used the following StringBuffer Constructors. StringBuffer() //Default Constructor with 16 characters set StringBuffer(String s) //String to String 

Java-Tutorials

Differences between the String, StringBuilder, and StringBuffer classes
Differences between the String, StringBuilder, and StringBuffer classes StringBuffer versus String Java provides the StringBuffer and String classes...; StringBuffer class in Java Java String Examples String Buffer insert 

Java Beginners

mahesh want to know java with good understanding
mahesh want to know java with good understanding  I need to know about java beans(what are java beans,why we use java beans, etc...).I want an example program and it's output also.please teach me...   Java Beans 

Java Beginners

Java Query(based on swing concept)
Java Query(based on swing concept)  I want a particular submit button to get disabled whenever i write some account number starting with 774 and 775 in a text box of that screen 

Java Beginners

java - Java Beginners
java  hai... i have problem of unterstanding the ResourceBundle concept kindly give me good Example for it   Hi Friend, Please visit the following link: http://www.roseindia.net/tutorials/I18N/resource 

Java Beginners

StringBuffer and StringBuilder
StringBuffer and StringBuilder  package org.day.strings; import java.io.BufferedReader; public class Test { public static void main(String[] args) { StringBuffer sb1 = new StringBuffer(); sb1.append 

Development process Questions

wrapper class concept
wrapper class concept  Write a Java class that stores an integer item id, a string item name and a float price. Store all these in a String member Variable, separated by a space delimiter. Use an overloaded method to add 

Java Beginners

SOCKET PROGRAMING IN THE JAVA FOR NETWORKING CONCEPT
SOCKET PROGRAMING IN THE JAVA FOR NETWORKING CONCEPT  I WANT TO KNOW ABOUT THE JAVA SOCKET PROGRAMING FROM BASIC LEVEL AND HOW CAN I WORK ON IT I KNOW THE JAVA PROGRAMING.SO PLEASE HELP ME HOW CAN I DO SOCKET PROGRAMING 

Java Beginners

basic java - Java Beginners
basic java  oops concept in java ?  Hi Friend, Please visit the following links: http://www.roseindia.net/java/beginners/oop-in-java.shtml http://www.roseindia.net/java/learn-java-in-a-day/oops.shtml Thanks 

Design concepts & design patterns Questions

about the concept - Design concepts & design patterns
the concept "object oriented technology" and how it is differ from "structured langauge".  Object Oriented Language http://www.roseindia.net/java/master-java/java-object-oriented-language.shtml 

Java Beginners

java beginners - Java Beginners
java beginners  is there any other way to do this ? i want to do... { public static void main(String[] args) { StringBuffer output = new StringBuffer(); System.out.println("Enter string to encode:"); Scanner input = new 

General

OOPs Concept
through the method overloading concept in java.  Method... OOPs Concept      ... the OOPs concepts along with  fundamentals  used to develop the java 

Java Beginners

pointers in java - Java Beginners
pointers in java  Why pointers concept are not used in java 

Java Beginners

view jsp file (reference file). is the way of coding good ?
view jsp file (reference file). is the way of coding good ?  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> View Retailer <%@ page import="com.tcs.ilp.*" %> 

JSP Servlet Questions

Required help about the concept of JSP page reloading
Required help about the concept of JSP page reloading  Hi, We have one application with Websphere portlet Factory generated JSP as front end, Java in the business layer and finally DB2 as back-end. In certain cases 

JSP Servlet Questions

Required help about the concept of JSP page reloading
Required help about the concept of JSP page reloading  Hi, We have one application with Websphere portlet Factory generated JSP as front end, Java in the business layer and finally DB2 as back-end. In certain cases 

Java Beginners

writing aprogram - Java Beginners
information, visit the following link: http://www.roseindia.net/java/beginners...); System.out.println("Enter string:"); String st=input.nextLine(); StringBuffer buffer = new StringBuffer(st); String reverseString=buffer.reverse().toString 

Java Beginners

arrays - Java Beginners
is that an array isn't really a good idea for a set of items with no fixed size - a collection...() { StringBuffer temp = new StringBuffer(); String newline 

Java Beginners

array example - Java Beginners
solution, since the fundamental problem is that an array isn't really a good idea... listDependents() { StringBuffer temp = new StringBuffer(); String newline 

Java Beginners

Java - Java Beginners
Java  I need a program in java. For ex, if I Give my input as "My... input=new Scanner(System.in); String str=input.nextLine(); StringBuffer buffer = new StringBuffer(str); StringTokenizer st = new StringTokenizer 

Java Beginners

inheritance - Java Beginners
inheritance  help me on inheritance concept in java specialy on overloading and overridding concept 

Java Beginners

String in Java - Java Beginners
: http://www.roseindia.net/java/beginners/array_list_demo.shtml Thanks... in advance   Hello Antony Insted Using String Array Use StringBuffer...]); } } } ---------------------------------------------------- I am sending simple code of String array. If you are beginner in java 

Java Beginners

java - Java Beginners
java  hi...... how can i use the visible property in java using swing concept.... pls reply as quick as possible becoz its urgent 

Java Beginners

java code - Java Beginners
java code  PROGRAM FOR RIGHT ALIGNMENT i.e INPUT: Enter any sentence: "This is JAVA" (which is displaying on the left side in the console i.e on cmd prompt) OUTPUT: "This is JAVA" (should 

Java Beginners

Inheritance in java - Java Beginners
Inheritance in java  I want a example program using the concept of (simple and multiple) inheritance 

Java Beginners

java - Java Beginners
java  i have to make a programm in java to multiply any number... String concatination only   Hi Friend, You can use StringBuffer also...(String[] args) { System.out.println("MultiplyBy100"); StringBuffer sb 

Java Beginners

STRINGS - Java Beginners
STRINGS  WRITE A JAVA PROGRAM TO REVERSE THE ORDER OF WORDS...="ANT EATS APPLES"; StringBuffer buffer = new StringBuffer(str...(st.hasMoreTokens()){ StringBuffer sb= new StringBuffer(st.nextToken()); System.out.print 

Java-Tutorials

Inheritance in Java 7
This tutorial describe concept of Inheritance. It is one of OOPs concept 

Java-Tutorials

Polymorphism in Java 7
This tutorial describe concept of Polymorphism. It is one of OOPs concept 

Java Beginners

java - Java Beginners
java  give the java programming syntex when the text like i love india is reverse and then give the output like i evol aidni.  Hi Friend...=""; StringBuffer sb=new StringBuffer(); StringTokenizer stk=new StringTokenizer 

Java Beginners

java related - Java Beginners
/ http://www.roseindia.net/java/beginners/ Thanks...java related  Hello sir, I want to learn java. But I don't know where to start from. I have purchased one java related book. But I am 

Java Beginners

Java Kick Start - Java Beginners
Java Kick Start  Hello Sir, i like to become a good developer in Java. Im good in JAVA 

Java Beginners

Inheritance in java - Java Beginners
Inheritance in java  I want a example program using the concept of (single and multiple) inheritance.  Hi Friend, Please visit the following link: http://www.roseindia.net/java/language/inheritance.shtml Thanks 

Java Beginners

java - Java Beginners
java  program concept behind inheritance in java  Hi Friend, Please visit the following link: http://www.roseindia.net/java/language/inheritance.shtml Hope that it will be helpful for you. Thanks 

Java Beginners

java - Java Beginners
, This is good book for java and suncetification Balaguruswamy java book and complete Reference both are good for java technology 

Java Beginners

hai java - Java Beginners
hai java  what do u mean by unchecked exception and checked exception? and do any java pgm will run with out thread concept... and what si...://www.roseindia.net/java/exceptions/exception.shtml Thanks 

Java Beginners

java - Java Beginners
java  java program that correctly implements producer consumer problem using the concept of inter thread communication  Hi Friend, Please visit the following link: http://www.roseindia.net/java/thread 

Java Beginners

intro. - Java Beginners
is an example of StringBuffer class in Java:http://www.roseindia.net/java/beginners 

Java Beginners

java - Java Beginners
){ StringBuffer output = new StringBuffer(); StringTokenizer tokenizer = new 

Java Beginners

Java Program - Java Beginners
Java Program  Write a program to input a string and print out... "; char[] cArray; StringBuffer output = new StringBuffer(""); String[] sArray...: "); String str=input.nextLine(); StringBuffer sb=new StringBuffer(); char ch 

Java Beginners

java - Java Beginners
java  explain the concept of tree and its applications in java .../java/example/java/swing/TreeComponent.shtml http://www.roseindia.net/java/example/java/swing/displayingjtreedata-in-java.shtml http://www.roseindia.net/java 

Java Beginners

code problem - Java Beginners
h i want to store them as sequence in a StringBuffer like "satish" how..."; StringBuffer strbuf = new StringBuffer(); for(int i=0;i  thank 

Java Beginners

Java - Java Beginners
in java at run time ?pls assist ??? Thanks balaji J   Hi friend, Code to store array of strings and numbers using arrays in java at run time. import java.io.*; public class stringBuffer{ public static void main 

Java Beginners

java - Java Beginners
java   Explain the concept of searching and various searching... declarations, references and occurrences of Java elements. It is supported... the following links: http://www.roseindia.net/java/java-tips/algorithms 

Java Beginners

java code - Java Beginners
java code  hi sir.. write a code in java for the password generator...(by)); } public static String encrypt (byte buf[]) { StringBuffer strbuf = new StringBuffer(buf.length * 2); int i; for (i = 0; i < buf.length; i 

Java Beginners

core java - Java Beginners
StringBuffer(string).reverse().toString(); System.out.println("\nString...); } } ------------------------------------------------------- Read for more information. http://www.roseindia.net/java/ Thanks 

Java Beginners

Real time examples - Java Beginners
,constructor overloading concept in java and explain with real time examples? .../java/master-java/method_overloading.shtml http://www.roseindia.net/java/javascript-array/modified-java-method-overriding.shtml http://www.roseindia.net/java 

Java Beginners

java - Java Beginners
java  WRITE THE CODE IN JAVA FOR THE FOLLOWING PROGRAMS(USING FOR LOOP): 1. H HE HEL HELL HELLO 2. 54321 4321 321...[] args) { String word = "heLLo"; StringBuffer buffer = new StringBuffer 

Java Beginners

Pass by Reference - Java Beginners
by Reference?can u please explain with examples.is java supports Pass by reference... void display(StringBuffer sb){ sb=sb.insert(8,"to"); System.out.println(sb); } public static void main(String[]args){ StringBuffer sb1=new 

Java Beginners

java - Java Beginners
java  hi sir good evening what iam asking is why java is platform independent language,how can you say it is like let me know briefly 

Java Beginners

chat - Java Beginners
chat   basic concept of chatting.. how will we connect the online users ? requirements for a chatting programme 

Java Beginners

Java - Java Beginners
Java  Sir/Madam, I am learning Java. Please tell me that how can learn java by good way to become in the TOP of the world... the following link and learn java: http://www.roseindia.net/java/ Thanks 

Java Beginners

Java to html - Java Beginners
Java to html   Hi , I have to compare two text files, and put..., i need help for writing the results from the java application to the html file. Thanks kavitha  Hi kavitha, U can use PrintWriter concept 

Java Beginners

Java - Java Beginners
Java  Sir,plz help me to solve these java problems: Q.1. Write a Progarm to illustrate the concept of multiple inheritance using interface Q.2.... Friend, Please visit the following links: http://www.roseindia.net/java 

Java Beginners

java - Java Beginners
encoder(String s){ StringBuffer output = new StringBuffer 

Java Beginners

java - Java Beginners
java   Note. I am from philippines and our currency is peso  I am from India and our culture is good 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I have this program I cant figure out. Write... cmdGood Caption Good Mnemonic G... a user clicks the Good button, the message Today is a good day! appears 

Java Beginners

Java - Java Beginners
Java  (1) What is the exact difference between insance and object in java. (2) Somebody tells Runnable and Comparable also "Markar Interfaces" why... instance Multible threads" concept. (if possible give me one exaple 

Java Beginners

Constructor - Java Beginners
for more information. http://www.roseindia.net/java/beginners/Construct.shtml...Constructor  What is a constructor? What are its special properties?  Hi friend, A constructor, in object oriented programming concept 

Java Beginners

palindrome - Java Beginners
+ " is not a palindrome"); } } } For more information on Java visit to : http://www.roseindia.net/java/beginners/ Thanks Thanks...= br.readLine(); String reverse = new StringBuffer(str).reverse().toString 

Java Beginners

core java - Java Beginners
; Hi friend, Marker Interface : In java language programming... an error. To make more clearly understand the concept of marker interface you...://www.roseindia.net/java/master-java/interface.shtml Thanks 

Java Beginners

java - Java Beginners
Programming Skills in Java  How to develop a good programming skills in Java  Hi,To develop programming skills in java you must work hard and start learning.For start java programming you need:1.First required java 

Java Beginners

Java Program - Java Beginners
Java Program  Write a program that converts a decimal number to Roman...("Numbers must be in range 1-3999"); } StringBuffer buffer = new StringBuffer(10); for (Roman rvalue : table) { while (n > 

Java Beginners

java - Java Beginners
java  im comfortable with c and c++ language concept. i also know core java little bit but now i m confused as i don't know from where shud i start... SHOULD I WALK?". If ur comfortable with C++(core java) then its too easy 

Java Beginners

Java code - Java Beginners
Java code  Java program to calculate simple interest using the concept of constructor and method overriding  Hi Friend, Try the following code: class Principal { double p; Principal(double p) { this.p=p 

Java Beginners

string - Java Beginners
(); StringBuffer sb= new StringBuffer(words); String reversedWords=sb.reverse 

Java Beginners

que 2 - Java Beginners
); System.out.print("Enter string: "); String str=input.nextLine(); StringBuffer sb=new StringBuffer(); char ch[]=str.toCharArray(); for(int i=0;i 

Java Beginners

java - Java Beginners
java   Reading a file content in java(with concept & source code) Reading contents of any URL in java (with concept & source code)  Hi... information. http://www.roseindia.net/java 

Java Tips and Examples

WebTycho Guidelines
Java Notes: WebTycho Guidelines Good practices Code Corner Turn... go in HTML. This is something like the problem of putting a " into a Java string. In Java you prefix the metacharacter with a backslash (\). In HTML 

Java Beginners

java - Java Beginners
it in console.By using timer concept or thread or some other concepts.  Hi 

Java Beginners

java - Java Beginners
it in console.I want code using timer concept 

Java Beginners

JAVA - Java Beginners
JAVA  Simply explain about wrapper class & OOPS concept with example.   Hi friend, This is wrapper class code import java.io.*; public class WrapperClass { public static void main(String[] args) throws 

Java Beginners

Java Program - Java Beginners
Java Program  Write a Java program to create an JApplet with three...) { if(st.equals("Good Morning to you")){ g.setColor(Color.red); g.setFont(new Font("Helvetica",Font.BOLD,20)); } if(st.equals("Good Afternoon 

Java Beginners

java - Java Beginners
java  Q: write a program in java which input a positive natural N and output all combination of consecutive natural which add up to give N... ArrayList and StringBuffer 

Java Beginners

Thread - Java Beginners
the concept of thread, thread creation and use of threads in JAVA application?  Thread creation and use of threads in JAVA Java Resourcehttp://www.roseindia.net/java/thread/thread-creation.shtml 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I have this program I cant figure out. Write... Setting- cmdGood, Good, G Object- Jbutton Property- Name Caption, Mnemonic... that when a user clicks the Good button, the message Today is a good day! appears 

Java Beginners

java - Java Beginners
java  Hi, i have 1 year exp in java, how to became good programmer, any pattern is there to learn programming in java, i need struts coding how to do very easily pls anybody tell me, any process is there to learn 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.