Search this site
Home
Apache
BSD
C#.NET
C/C++
CiscoASA
CiscoIOS
ColdFusion
Cygwin
DB2
Dbg
Eclipse
EJB
Far
GAE
GWT
HTML
IIS
InfoSec
Java
JavaScript
JBoss
jQuery
JunOS
Linux
MSSQL
MySQL
OMSA
OracleDB
Perl
PHP
PL/SQL
PowerConnect
PowerShell
Regex
ShellScript
Tomcat
VB.NET
Visual Studio
Weblogic
Windows
Sitemap
Java
>
Assertion
Java Assertion Example
assert args.length == 3: "Bad number of command line arguments";
Note that to enable assertion, you would need to run java using the -ea (enable assertion) flag
java -ea -jar myprogram.jar
Comments