wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes assertion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "assertion" Watch "assertion" New topic
Author

assertion

akila sekaran
Ranch Hand

Joined: Jun 12, 2012
Posts: 48
can assertion be done at compile time ?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14117
    
  16

No. Assertions are used for example to check if the values that you pass to a method are within the range that the method expects. It makes to sense to "do assertions at compile time".


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: assertion