Results 1 to 2 of 2

Thread: Use of assertion in java

  1. #1
    Williamsjones is offline Senior Member
    Join Date
    Dec 2009
    Posts
    352
    Rep Power
    3

    Default Use of assertion in java

    I am unable to know the assertion in java. I do not know what the use of assertion in java is. I have referred different java programming books but did not get sufficient information over this. If you know the use of assertion in java, then please let me know that. Any help would be highly appreciated.

  2. #2
    Brownchris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    Assertions include Boolean expressions that define the accurate state of your program at particular points in the source code. Assertions can be used to discover errors that may otherwise go unnoticed. Use assertions for internal consistency checks, i.e. to show you screwed up, not the user of your class. Assertion used to presents an overview of design by contract.

Similar Threads

  1. I need some JAVA help
    By GonzalezBrown in forum Programming
    Replies: 0
    Last Post: 08-09-2010, 02:11 PM
  2. Is there anything new in Java 6
    By TaylorRyan in forum Programming
    Replies: 1
    Last Post: 08-09-2010, 01:57 PM
  3. Java VS Dot Net
    By CarterWatson in forum Programming
    Replies: 1
    Last Post: 02-01-2010, 05:39 PM
  4. Do I really need Java?
    By bunnut78 in forum Windows XP
    Replies: 1
    Last Post: 04-28-2009, 11:16 AM
  5. Java
    By andrea55 in forum Everything Else
    Replies: 0
    Last Post: 03-25-2009, 11:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48