Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assertions

 
Sharmila Rishi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

According to JLS a compile time error occurs if an assert statement is unreachable.Can anyone please give an example.


Thanks in advance.


-Sharmila Rishi
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Sharmila Rishi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks marc.



-Sharmila Rishi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic