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)"..
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,
os
Re: Q?> about public static void main(String args[])
Quote:
Originally Posted by
JosAH
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,
os
Q1> so any of the two is working properly in the long run? no erors in the two?
Q2> why i incounter always the "public static void main(String args[])" using java?
Q3> so if im using java, ur advice is always use the "public static void main(String[] args)" for java way?
Re: Q?> about public static void main(String args[])
Quote:
Originally Posted by
boblingwide
Q1> so any of the two is working properly in the long run? no erors in the two?
Q2> why i incounter always the "public static void main(String args[])" using java?
Q3> so if im using java, ur advice is always use the "public static void main(String[] args)" for java way?
Which part of "the same meaning" didn't you understand? C/C++ infected people prefer the C-way, others like the Java way.
kind regards,
Jos
Re: Q?> about public static void main(String args[])
Quote:
Originally Posted by
JosAH
Which part of "the same meaning" didn't you understand? C/C++ infected people prefer the C-way, others like the Java way.
kind regards,
Jos
ahh ok tnx! im a java man, so il go to java way hehehe