Java – Character

Java – Character 2017-06-13T01:04:54+00:00

Character class :

The Character class encapsulates a char value. This class provides the following constructor.

Character(char ch)

Here, c is a char value. charValue() method returns the char value that is encapsulated by a Character object and has the following form:

char charValue()

EX :


Output :
Object C1 = m
char value of Character Object = m
O is defined character set ? true
c2 is digit = false
c2 is lowercase character = false
c2 is uppercase character = true

Prev Next