It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Q on static inner Classes 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 "Q on static inner Classes" Watch "Q on static inner Classes" New topic
Author

Q on static inner Classes

Reshma Shanbhag
Ranch Hand

Joined: Sep 17, 2002
Posts: 202
What is the answer for this question.
Question :
Given the following class file , how can you get a reference to an object of type Inner ?

Options :
a . new Outer ( ) . new Inner ( );
b . Outer . new Inner ( );
c . new Outer . Inner ( );
d . Outer . Inner ( );
Thanks
Reshma


SCJP 1.4, SCWCD 1.4
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
c


Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Q on static inner Classes
 
Similar Threads
Nested Classes
question about inner class instantiation
static inner class
question on inner class
Generics: cannot make a static reference to the non-static type