Forums Register Login

Static class??

+Pie Number of slices to send: Send
Can we make any class static?? Or only methods & variables in a class can be static??
+Pie Number of slices to send: Send
a nested class can be static
+Pie Number of slices to send: Send
 

Devaka Cooray wrote:a nested class can be static



I did not get you properly. Can you please, explain a bit more giving any small example??
+Pie Number of slices to send: Send
Example:

For more information, see: The Java Tutorials - Nested Classes
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 930 times.
Similar Threads
static and serialization
static class
doubt on Inner class
Static Class
Inner Classes Q
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:58:47.