2021年3月21日星期日

What is the difference between 0, '\n', and '\0' in Java

I would like to know the difference between 0, '\n', and '\0' when dealing with char in Java.

For example:

private final char NULL_CHAR = 0;    private final char NULL_CHAR = '\n';    private final char NULL_CHAR = '\0';  
https://stackoverflow.com/questions/66739469/what-is-the-difference-between-0-n-and-0-in-java March 22, 2021 at 10:06AM

没有评论:

发表评论