• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object refrences and inner classes

 
khella smith
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good way to satisfy both of your questions would be to write a couple of quick test programs to see what happens.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic