This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I was writing a method which can be used in a method--"public static void ..." and i wrote my method as "private static void ...". Just wondering what's the difference between the method signature "private static void ..." and "static private void ..."?
I may be wrong here but if you write a method with public static void and then one with private static void they do seem different to me. Your public static method would be able to be called statically from within another object where as a private static method would only be able to be called from with the same object of which is has been declared.
Originally posted by Sloan Bowman: I may be wrong here but if you write a method with public static void and then one with private static void they do seem different to me.
Yes. But if you look closely you will see that this wasn't the question...
To elaborate, the class and member modifier keywords (public, private, protected, synchronized, static, final, volatile, transient and awesome) can be specified in any order, though conventions certainly have taken shape over the years.