Java: Are chars " and \" the same? -


given:

char x = '"'; char y = '\"'; 

are x , y equal?

they equal. (the link executes following test)

class foo{     public static void main(string[] a){        system.out.println('"' == '\"'); // prints true     } } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -