I have seen this cod, why it works please?
public void nеw() {
System.out.println("!?");
}
It is compile in java, I think new is a reserved word
It is a cyrillic е, not a latin e. Therefore, it looks like new, but is actually a different method name.
Like NPE said, I would recommend reading is it a good idea to use unicode symbols as java identifiers?
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