Explain java.lang.string library in java, JAVA Programming

Explain java.lang.string library in java?

Strings are objects. Specifically they're instances of the class java.lang.String. This class has several methods which are useful for working along with strings.

Internally Java Strings are arrays of Unicode characters. For instance the String "Hello" is a five element array. Like arrays, Strings starts counting at 0. Therefore in the String "Hello" 'H' is character 0, 'e' is character 1, and so on.

0

1

2

3

4

H

e

l

l

o

 

Posted Date: 5/16/2013 2:46:44 AM | Location : United States







Related Discussions:- Explain java.lang.string library in java, Assignment Help, Ask Question on Explain java.lang.string library in java, Get Answer, Expert's Help, Explain java.lang.string library in java Discussions

Write discussion on Explain java.lang.string library in java
Your posts are moderated
Related Questions
What happens to the static fields of a class during serialization? There are three exceptions in which serialization does not necessarily read and write to the stream. These

Question 1: (a) Describe two reasons driving the termination of processes. (b) Discuss the five main steps the OS would implement once it has decided to create a new proc

The Action Class is type of the Model and is a wrapper around the business logic. The purpose of Action Class is to change the HttpServletRequest to the business logic. To use the


Player Ship Appearance: • Your ship must be either a nice-looking sphere (left image above), or a nice-looking sphere with a "mouth" (middle image above), depending on variant.

Extraction of articles The software I'm looking to build: 1. Extraction of articles from various sites 2. Format the content to re-post 3. Automate the process Skill

Create a program Using Constructors? The further program uses the constructor to initialize a car rather than setting the areas directly. class CarTest7 { public static voi

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

What is casting? There are two types of casting, casting among primitive numeric types and casting among object references. Casting among numeric types is used to convert large

public class TreeTest {     public static void main(String args[])     {         Tree t = new Tree ();         System.out.println("Populating");         t.insertItem(1);         t