• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exam objective 8.1 performance inner classes

 
Nobuhiro Watsuki
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been wondering about the first objective from "section 8: MIDP User Interface (UI) API":
Given a scenario, develop MIDP 2.0-compliant user interfaces, recognizing portability requirements and limitations (such as double-buffering not guaranteed), and performance issues (such as using inner classes and freeing memory buffers).

I get the buffer part, but what is the performance issue with inner classes?

Kalim says:
Refrain from using inner classes, and especially anonymous inner classes. In addition to incurring a certain amount of overhead due to the additional classes, the compiler generates additional methods and variables that allow the inner classes access to the private variables of the class enclosing it.

Does anybody wish to share his/her wisdom?
[ November 17, 2005: Message edited by: Nobuhiro Watsuki ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic