Character.isJavaIdentifierStart() Method in Java Last Updated : 06 Dec, 2018 Summarize Comments Improve Suggest changes Share Like Article Like Report The Character.isJavaIdentifierStart(int codePoint) is an inbuilt method in java that determines if the character (Unicode code point) is permissible as the first character in a Java identifier. It is to be noted that a character may start a Java identifier if and only if one of the following conditions is true: isLetter(ch) returns true getType(ch) returns LETTER_NUMBER ch is a currency symbol (such as ‘$’) ch is a connecting punctuation character (such as ‘_’). Syntax: public static boolean isJavaIdentifierStart(int codePoint) Parameters: The parameter codePoint is of the integer type and refers to the character (Unicode code point) that is to be tested. Return value: The isJavaIdentifierStart(int codePoint) method of Character class returns true if the character may start a Java identifier; false otherwise. Below programs illustrate the Character.isJavaIdentifierStart() method: Program 1: Java // Java program to illustrate // Character.isJavaIdentifierStart() method import java.lang.*; public class gfg { public static void main(String[] args) { // Create 2 int primitives c1, c2 int c1 = 0x0039, c2 = 0x004b, c3 = 0x0081; // Assign isJavaIdentifierPart results of // c1, c2 to boolean primitives bool1, bool2 boolean bool1 = Character.isJavaIdentifierStart(c1); boolean bool2 = Character.isJavaIdentifierStart(c2); boolean bool3 = Character.isJavaIdentifierStart(c3); String str1 = "c1 may start a Java identifier is " + bool1; String str2 = "c2 may start a Java identifier is " + bool2; String str3 = "c3 may start a Java identifier is " + bool3; // Print bool1, bool2 values System.out.println(str1); System.out.println(str2); System.out.println(str3); } } Output: c1 may start a Java identifier is false c2 may start a Java identifier is true c3 may start a Java identifier is false Program 2: Java // Java program to illustrate // Character.isJavaIdentifierStart() method import java.lang.*; public class gfg { public static void main(String[] args) { // Create 2 int primitives c1, c2 int c1 = 0x0034, c2 = 0x005a; // Assign isJavaIdentifierPart results of // c1, c2 to boolean primitives bool1, bool2 boolean bool1 = Character.isJavaIdentifierStart(c1); boolean bool2 = Character.isJavaIdentifierStart(c2); String str1 = "c1 may start a Java identifier is " + bool1; String str2 = "c2 may start a Java identifier is " + bool2; // Print bool1, bool2 values System.out.println(str1); System.out.println(str2); } } Output: c1 may start a Java identifier is false c2 may start a Java identifier is true Reference: https://docs.oracle.com/javase/7/docs/api/java/lang/Character.html#isJavaIdentifierStart(char) Comment More infoAdvertise with us Next Article Character.isJavaIdentifierPart() Method in Java with Examples T Twinkl Bajaj Follow Improve Article Tags : Misc Java Java-lang package Java-Functions Java-Character +1 More Practice Tags : JavaMisc Similar Reads Character.isJavaIdentifierStart() method in Java The java.lang.Character.isJavaIdentifierStart(char ch) is an inbuilt method in java which determines if the specified character is permissible as the first character in a Java identifier or not. A character may start as a Java identifier if and only if one of the following conditions is true: isLett 2 min read Character.isJavaIdentifierPart() Method in Java with Examples The Character.isJavaIdentifierPart(int codePoint) is an inbuilt method in java that determines if the specified character may be part of a Java identifier as other than the first character. A character may be a part of Java identifier if any of the following are true: it is a letter it is a currency 4 min read Character.isSpaceChar() method in Java The java.lang.Character.isSpaceChar(char ch) is an inbuilt method in java which determines if the specified character is a Unicode space character. A character is considered to be a space character if and only if it is specified to be a space character by the Unicode Standard. This method returns tr 2 min read Character.isUnicodeIdentifierPart() Method in Java with Examples The java.lang.Character.isUnicodeIdentifierPart() is an inbuilt method in java that determines if the specified character may be part of a Unicode identifier as other than the first character. A character may be part of a Unicode identifier if and only if one of the following statements is true: it 4 min read Character.isMirrored() method in Java The Character.isMirrored(int codePoint) is an inbuilt method in java that determines whether the specified character (Unicode code point) is mirrored according to the Unicode specification. Mirrored characters should have their glyphs horizontally mirrored when displayed in text that is right-to-lef 2 min read Character.isIdentifierIgnorable() in Java with Examples The java.lang.Character.isIdentifierIgnorable(char ch) is an inbuilt method in java that determines if the specified character should be regarded as an ignorable character in a Java identifier or a Unicode identifier. The following Unicode characters are ignorable in a Java identifier or a Unicode i 4 min read Like