In Java, you know command line arguments to your program have been specified if the args parameter to main has a length that is greater than 0. e.g. public static void main(String[] args) { }