• Post Reply Bookmark Topic Watch Topic
  • New Topic

Anonymous class  RSS feed

 
Hans-Li
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An instance of An Anonymous inner class can only be created in it outer class .(True/False)? Why?
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
False, Anonymouse classes are created in methods and these can for methods of inner classes or outer classes.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!