mardi 1 mars 2016

= and == difference in If statement Java

I am facing something strange here. Please help me understand if I am missing something. My if condition was supposed to be:

if(configuredPdf == true)

But by mistake I had written:

if(configuredPdf = true)

And my Eclipse compiler does not ask me to correct it. Then I assume there is no compile time or checked exception. So:

(configuredPdf = true)

Returns a boolean?

Aucun commentaire:

Enregistrer un commentaire