String Java

String Java

String Java: In every language strings and string manipulations are inevitable. knowing the importance of string operations, Designers of Java introduced two classes to manipulate strings- String and StringBuffer.

In C/C++, string is an array of characters with a terminating /0. But in Java, it is very different. String is given the status of a class and placed in java.lang package.

String Java class comes with many predefined methods that make string manipulations easier. One small example is given with few methods on String Java.

String JavaOutput Screenshot on String Java

Few methods are given in the above example of String Java class. Many more methods are given with Examples, string manipulations Techniques a Programmer can do, Palindrome example etc. are fully discussed in the following link of this same Web site: One stop destination for all Java String and StringBuffer operations.

Leave a Reply

Your email address will not be published. Required fields are marked *