Java – Character

Java – Character 2017-08-09T12:45:31+00:00

Java Character class :

Java 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