1. package demo.underline;
    2. /**
    3. * 下划线使用示例
    4. */
    5. public class UnderLine {
    6. public static void main(String[] args) {
    7. String _name = "用户名";
    8. //报错:As of Java 9, '_' is a keyword, and may not be used as an identifier
    9. //_变成了一个关键字
    10. String _ = "用户名";
    11. }
    12. }