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
JavaRanch » Java Forums » Java » Java in General
Bookmark "object refrences and inner classes" Watch "object refrences and inner classes" New topic

object refrences and inner classes

khella smith
Ranch Hand

Joined: May 06, 2002
Posts: 39
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 = 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

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]
I agree. Here's the link:
subject: object refrences and inner classes
It's not a secret anymore!