File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java Interview Guide
this week in the
Programmer Certification (SCJP/OCPJP)
Command line arguments
Joined: Jun 16, 2009
May 12, 2010 23:30:16
public static void main (
Here I am not passing any command line arguments while running this class.But an object is being created why?
Joined: Oct 13, 2009
May 13, 2010 00:27:11
If you don't pass anything, an empty String array is created by JVM itself. At the end array is an object.
That's why an object is being printed out.
Hope this helps,
Follow me on Twitter
When you score low in mocks
I agree. Here's the link:
subject: Command line arguments
Running a Program from Elements in its Title
command line arguments
Qn from Javacert
how to read character from command line and store it string
unix console, program parameter
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015