Welcome! Log In Create A New Profile

Advanced

public static void main(String[] args)

Posted by Bheki 
Announcements Last Post
Announcement Ex Unisa: Prof Helene Gelderblom: Obituary 04/09/2018 04:19PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement myLife access 03/30/2018 12:12PM
Announcement myUnisa and myLife contact details 03/29/2018 04:55PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
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