Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instantiating an inner class.

 
Alexander Sales
Ranch Hand
Posts: 89
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Good morning and good day!

Question:

Suppose I have..



How many object instances will i create if i will do this code?

 
Ralph Cook
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have created two that we know of -- one Outer and one Inner, with no ongoing reference to the Outer class.
rc
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic