next up previous contents
Next: Subclasses and inheritance Up: Basic Java syntax Previous: Arrays   Contents

Final note

Now we know exactly what type the argument to main() is in the following:

  class helloworld{
    public static void main(String[] args){
      System.out.println("Hello world!");
    }
  }

Here, args is an array of String. We don't need the equivalent of argc in C because we can extract it via args.length.



Madhavan Mukund 2004-04-29