Forums Register Login

Never Thought About This!!!!!

+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
Of course the return type is most close to method name or variables , others wont compile !
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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!
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 672 times.
Similar Threads
Get the hidding overridden method...
Thanks everyone.
abstract/concrete methods and modifiers
return
Private modifier and classes
for loop
Thread Alive?-->JQ+
Passed SCPJ2 With 93%
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:40:22.