In Java, Character.isUnicodeIdentifierStart(ch) returns true when the character may begin an identifier according to the Unicode identifier rules (Unicode Standard Annex #31), rather than the Java language rules. That means letters and letter numbers such as Roman numerals.
The key difference from isJavaIdentifierStart() is that '$' and '_' are not allowed at the start. Use it when validating names for a format or language that follows Unicode rules instead of Java's.
A static method of java.lang.Character (Java 1.1+): call it on the class, as in Character.isUnicodeIdentifierStart(...); you do not need a Character object. No import is needed, because java.lang is always available. The int codePoint overload was added in Java 5.
Unicode version.
The answer comes from the Unicode Character Database built into your JDK, and each Java release follows a specific Unicode version (Java 8, for example, uses Unicode 6.2). The characters used on this page have had the same properties for many Unicode versions, so the examples print the same result on any current JDK.
Syntax
Pass a char, or an int code point.
Java
Character.isUnicodeIdentifierStart('a'); // true
Character.isUnicodeIdentifierStart('_'); // false (isJavaIdentifierStart: true)
Character.isUnicodeIdentifierStart('$'); // false (isJavaIdentifierStart: true)
Character.isUnicodeIdentifierStart('\u2160'); // true, ROMAN NUMERAL ONE
Character.isUnicodeIdentifierStart(0x10400); // true, DESERET CAPITAL LETTER LONG I
Two supplementary letters. MATHEMATICAL BOLD CAPITAL A and DESERET CAPITAL LETTER LONG I are uppercase letters, valid in any position.
A digit outside the BMP. U+1D7CE MATHEMATICAL BOLD DIGIT ZERO is a decimal digit: not a start, but a valid part.
No emoji. U+1F600 is a symbol, so it fails both checks.
Frequently Asked Questions
An identifier defined by Unicode Standard Annex #31: it starts with a letter or letter number and continues with letters, digits, connectors, and marks.
isJavaIdentifierStart also allows currency symbols such as $ and connector punctuation such as _ at the start; isUnicodeIdentifierStart does not.
Not under these rules. Character.isUnicodeIdentifierStart('_') is false.
For rare characters, yes: newer JDKs add Other_ID_Start chars and newer Unicode letters. ASCII results are stable.
When validating names for a system that follows Unicode identifier rules rather than Java rules, such as some query or markup languages.