All About Class Character in Java

Character class provides us a value of the primitive type Character(char) in an object.An object of type Character contains a single filed whose type is char.
The class Character  is defined as :



public final class java.lang.Character extends java.lang.Object{
//Member Elements
public final static int MAX_RADIX;
//the constant value of this field is the largest value(36) permitted for the radix argument in radix conversion method such as the digit method, the forDigit() method and toString() method of the class Integer.
public final static char MAX_VLUE;
//the constant value of this field is the largest value like-'\uffff' for type char
public final static int MIN_RADIX;
//the constant value of this field is the smallest value permitted for the radix argument in radix conversion method such as the digit method, the forDigit() method and toString() method of the class Integer.
public final static char MIN_VLUE;
//the constant value of this field is the smallest value like-'\u0000' for type char
//constructor
public character(Char value)
//creates a character object and initializes with it so that it can represent the value passed in the argument.
//Methods:
public char charValue();
public static int digit(char ch,int redix);
public boolean equals(Object obj);
public static char forDigit(int digit,int redix);
public int hashCode();
public static char toLowerCase(char ch);
public static char toTtleCase(char ch);
public static char toUpperCase(char ch);
public String toString();
public static boolean isDefined(char ch);
public static boolean isDigit(char ch);
public static boolean isJavaLetter(char ch);
public static boolean isJavaLetterorDigit(char ch);
public static boolean isLetter(char ch);
public static boolean isLetterorDigit(char ch);
public static boolean isLowerCase(char ch);
public static boolean isSpace(char ch);
public static boolean isTitleCase(char ch);
public static boolean isUpperCase(char ch);
}
 
All About Class Character in Java All About Class Character in Java Reviewed by Animesh Chatterjee on September 24, 2018 Rating: 5

No comments:

Powered by Blogger.