This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes confused question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "confused question" Watch "confused question" New topic
Author

confused question

Mellihoney Michael
Ranch Hand

Joined: Nov 27, 2002
Posts: 124
I want to ask the diffrence of the following code:
(Inner is an class enclosed by class Outer)
code A:

Inner i=new Inner();//that ok
Outer.Inner oi=new Outer().new Inner();//only if Inner is static inner class?


a beginner in java
Mellihoney Michael
Ranch Hand

Joined: Nov 27, 2002
Posts: 124
Inner i=new Outer().new Inner();//what about this one?
Sridhar Srikanthan
Ranch Hand

Joined: Jan 08, 2003
Posts: 366
Hi Michael , look at this code and ask me if you have any questions ?

Hope this helps
Sri
Sarma Lolla
Ranch Hand

Joined: Oct 21, 2002
Posts: 203

Take a look at this code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: confused question
 
Similar Threads
Inner Class - Initialization Sequence
use of Outer.this
Inner Class
Inner Class
Inner classes