aspose file tools*
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
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: 13875
    
  10

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
 
Consider Paul's rocket mass heater.
 
subject: assertion
 
Similar Threads
Assertion
Assertion is not in beta ...
Assertion
asseertion
A assertions qustion help about Man's mock!