hi
the part "String[] args" actually refers to command-line arguments. so, if you execute it without one, the value of args.length() is zero. since you have asked the code to print any length greater than zero, this is not printed. if you modify your code, i.e., remove your 'if' condition, you will get an output of 0. try giving any command-line arguments, and the code will print the number of arguments given.
all the best,
Anandh