• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusing Question.

 
kundana sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is confusing me a lot.
Can some one clarify this.please explain both the cases:enabling assertions and disabling assertions.

 
Greg Charles
Sheriff
Posts: 2987
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what the question is exactly, but the "trick" seems to be using = instead of ==. That means true is assigned to assertEnabled, and true is the value of the expression. If you didn't pay close attention you might think assertEnabled would be compared to true, and false would be the value of the expression.
 
kundana sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you .
I understood this after I posted the question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic