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 -

sql server - python to mssql encoding problem -

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