Java does not have typeof operator but there’s the instanceof operator to check the types. Can we do any better ? Plus instanceof does not support primitive types .
Read moreWhat is GetType () in Java?
getType(char ch) is an inbuilt method in java that returns a value indicating a character’s general category . This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the getType(int) method.
Read more