This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Never Thought About This!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Never Thought About This!!!!!" Watch "Never Thought About This!!!!!" New topic
Author

Never Thought About This!!!!!

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi guyz, I never thought that sequence of return type & static matters for compiler!
Means,
static void aMethod() is different from void static aMethod()!!
Why it is so??
Bye.
Viki.
------------------
Count the flowers of ur garden,NOT the leafs which falls away!


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Tony Sam
Ranch Hand

Joined: Nov 19, 2001
Posts: 32
Of course the return type is most close to method name or variables , others wont compile !

Tony Sam<BR>One want to be a SCJP...
Jim Hall
Ranch Hand

Joined: Nov 29, 2001
Posts: 162
public static synchronized native void amethod();
synchronized public static native void amethod();
synchronized native static public void amethod();
native public synchronized static void amethod();
The method modifiers can be in any order, but the return type must immediately precede the method name.
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Thanx Tony & Jim.Now i can realize that i am standing under SUN
Bye.
Viki.
------------------
Count the flowers of ur garden,NOT the leafs which falls away!
 
wood burning stoves
 
subject: Never Thought About This!!!!!
 
Similar Threads
Get the hidding overridden method...
abstract/concrete methods and modifiers
Thanks everyone.
return
Private modifier and classes