Two Laptop Bag*
The moose likes Java in General and the fly likes object refrences and inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "object refrences and inner classes" Watch "object refrences and inner classes" New topic
Author

object refrences and inner classes

khella smith
Ranch Hand

Joined: May 06, 2002
Posts: 39
hi,
i need to know if object refrences that are not initialized explicitly are set to null.
And also if u u can access an inner class using this instance too like: outerclass.innerclass i = this.new innerclass() can u also instactiate it like this? i know of the other one which is outer.inner i = new outer().new inner() i was wondering if u can access it the other way with the this refrence
thanx in advance for ur help
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
A good way to satisfy both of your questions would be to write a couple of quick test programs to see what happens.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: object refrences and inner classes