This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » Programmer Certification (SCJP)
 
RSS feed
 
New topic
Author

Assertions

Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Messages: 531

Hi all

In K&B it is written that it is inappropriate to assert parameters of a public method or inappropriate to assert some compile time arguments......i tried all these things are compiling

does this mean that this inappropriate means that they can be used but shouldn't be used because it would be a wrong practice....
Francisco Montes
Ranch Hand

Joined: Sep 30, 2009
Messages: 30

Because it will be not a good practice.

SCJP 1.6
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Messages: 341

Inappropriate means it is legal and will compile but not a good practice and not recommended by Sun.

This message was edited 1 time. Last update was at by Siva Masilamani


SCJP 6,SCWCD 5
Failure is not an option.
Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Messages: 531

ya..even i thought so
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » Programmer Certification (SCJP)
 
RSS feed
 
New topic
replay challenge