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.












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
How many static initializers can you have ? As many as you want, but the static initializers and class variable initializers are implemented in textual order and may not refer

For this Assignment, submit the following program: Create an application for an animal-fur trimming service. The business is open 15 weeks of the year, from April through July. The

Explain Arithmetic Promotion and Binary Operations? An int divided through an int is an int, and a double divided by a double is a double, but what about an int divided by a do

What is the role of fonts in java explain with example? You've already seen one instance of drawing text in the HelloWorldApplet program of the last chapter. You call the drawS

What is an Iterator? Some of the collection classes give traversal of their contents via a java.util.Iterator interface. This interface permits you to walk through a collection

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Explain unicode in java? Java uses the Unicode character set. It is a two-byte character code set which has characters representing almost overall characters in almost all huma

Object diagrams define instances instead of classes. They are useful for illustrating some complicated objects in detail about their recursive relationships.     When

Compare classes with C++ Some significant points to consider when defining a class in java as you probably noticed from above given skeleton are -  There  are  no  global

Write a program called Power that displays the positive powers of 2. When the user enters the exponent at a prompt, the program displays 2 to that power. The program halts when the