Standard Classes

Javaprovides a number of classes and methods for use by programmers. A few of those items are described below:
Math Class

The Math class methods are static methods that are called from the class name (e.g. Math.sqrt()). Each method takes at least one parameter and performs the required operations on it.
String Class

The String class methods must be called from a string variable. In other words, String str="programming", must first be declared and the methods would be called from the str variable (str.toUpperCase()). Many string method operate on indicies, a numbered order of characters. The important thing to note is that strings start counting at 0. So, in str, the index of the character p is 0.