Why are special characters (except $
, _
) not allowed in Java variable names?
The following code is all valid in Java...
int Δ = 1;
double π = 3.141592;
String 你好 = "hello";
Δ++;
System.out.println(Δ);
I'd say those are pretty special characters for variable names.
Source : http://rosettacode.org/wiki/Unicode_variable_names#Java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With