Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Programmer Certification (OCPJP)
Abt Inner Classes....
Shiaber Shaam
Ranch Hand
Posts: 252
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Which of the following can have a static member( Method/Variable)....
(a). An Ordinary inner Class
(b). Method Local Inner Class
(c). Static Class
(d). Anonymous Class
(e). None of the above
$Hi/\bEr
Keith Lynn
Ranch Hand
Posts: 2412
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I guess it depends on what you mean by static class. You can't make a top-level class static.
If they mean static nested class, then it can contain static members.
Shiaber Shaam
Ranch Hand
Posts: 252
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Its static nested class only... can a method local inner, ordinary inner,anonymous have a static member.....
$Hi/\bEr
Shiaber Shaam
Ranch Hand
Posts: 252
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Plz Explain...
$Hi/\bEr
gaurav singhal
Ranch Hand
Posts: 135
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Just with your post i found this in my eclipse when i tried having a static function and a variable in a inner class.
Static method can only be declared in a static or top level type.
I hope it ans your question..........
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Inner Class Methods
Doubt on Inner classes
Outer class instance
Method-Local Static Inner Class
[static variable]....
More...