Results 1 to 5 of 5
- 03-23-2012, 11:05 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 15
- Rep Power
- 0
Q?> about public static void main(String args[])
what is the diference in
1. public static void main(String args[])
2. public static void main(String[] args)
explain each diference and whats is the proper codings of this?
in java tutorials i always incounter "public static void main(String args[])"
than "public static void main(String[] args)"..
- 03-23-2012, 11:19 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
Re: Q?> about public static void main(String args[])
Both notatations have the same meaning; the first notation only exist not to scare of the C/C++ programmers. The second form is the 'Java way'.
kind regards,
osBuild a wall around Donald Trump; I'll pay for it.
- 03-23-2012, 11:36 AM #3
Member
- Join Date
- Mar 2012
- Posts
- 15
- Rep Power
- 0
Re: Q?> about public static void main(String args[])
Last edited by boblingwide; 03-23-2012 at 11:41 AM. Reason: wrong speling
- 03-23-2012, 12:01 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
- 03-23-2012, 12:17 PM #5
Member
- Join Date
- Mar 2012
- Posts
- 15
- Rep Power
- 0
Similar Threads
-
This is an error? public static void main(String args[])
By Jackount in forum New To JavaReplies: 10Last Post: 07-10-2011, 09:37 AM -
What wrong with it?case : public static void main
By bytescode in forum New To JavaReplies: 7Last Post: 02-10-2011, 08:01 AM -
Public static void main (String args[])
By arefeh in forum New To JavaReplies: 12Last Post: 01-28-2010, 12:58 PM -
Error: LengthCharAt.java:3: ';' expected public static void main (String[] args)
By antgaudi in forum New To JavaReplies: 9Last Post: 11-23-2008, 12:03 AM -
[SOLVED] Why main() in java is declared as public static void main?
By piyu.sha in forum New To JavaReplies: 5Last Post: 10-06-2008, 01:11 AM
Bookmarks