The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes SCJP 5.0 Inner Class Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "SCJP 5.0 Inner Class Doubt" Watch "SCJP 5.0 Inner Class Doubt" New topic

SCJP 5.0 Inner Class Doubt

Kedar Savarkar

Joined: May 02, 2005
Posts: 15
Are Inner classes on the new SCJP 5.0. I can't make out from the objectives clearly.?

Best Regards
Philip Heller
Ranch Hand

Joined: Oct 24, 2000
Posts: 119
Various objectives (e.g. 1.1 and 1.6) refer to "nested classes". I believe there's a slight technical difference between nested classes and inner classes, but in common parlance they're just about the same thing, and you need to know about them for the exam.

Consultant to SCJP team.<br />Co-designer of SCJD exam.<br />Co-author of "Complete Java 2 Certification Study Guide".<br />Author of "Ground-Up Java".
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
According to Sun's definitions, nested classes are a superset of inner classes. Nested classes include static member classes and inner classes. Inner classes include nonstatic member classes, local classes, and anonymous classes. So "nested classes" includes all these.

"I'm not back." - Bill Harding, Twister
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
What is the difference between a nested class, an inner class, a local class, an anonymous class and a member class (or interface)?

Yes, inner classes are in the SCJP 5.0 exam.

Tony Morris
Java Q&A (FAQ, Trivia)
Kedar Savarkar

Joined: May 02, 2005
Posts: 15
Thank you all for the prompt reply.
I agree. Here's the link:
subject: SCJP 5.0 Inner Class Doubt
It's not a secret anymore!