This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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>
 
 
subject: Q on static inner Classes