Welcome! Log In Create A New Profile

Advanced

public static void main(String[] args)

Posted by Bheki 
Position: School of Computing Forums > 2006 > COS2144
Announcements Last Post
Announcement Application and Registration dates 2017 08/25/2016 10:43AM
Announcement Registration dates 2016 08/19/2016 11:16AM
Announcement Welcome 2016 from the Director 12/14/2015 04:25PM
Announcement School of Computing Short Learning Programmes 07/26/2015 06:19PM
Announcement Registration as a user on these forums 07/16/2014 07:40AM
public static void main(String[] args)
August 15, 2006 04:32PM
what is the meaning / purpose of static keyword in this method definition:
public static void main(String[] args){}
Re: public static void main(String[] args)
August 15, 2006 07:42PM
Bheki Wrote:
-------------------------------------------------------
> what is the meaning / purpose of static keyword in
> this method definition:
> public static void main(String[] args){}


public - to access from outside the class
static - to access the method ( main ) without creating an object of it
void - the method returns nothing

Read page 110 in Jia for a more generic description of the static term. Hope that helps smiling smiley

Sorry, only registered users may post in this forum.

Click here to login