The moose likes Developer Certification (SCJD/OCMJD) and the fly likes MVC question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply locked New topic
Author

MVC question

David Pantale
Ranch Hand

Joined: Mar 16, 2010
Posts: 30
I asked this question already over in the general Java forum but this forum may give me a better answer. I think I've noticed a possible issue in Java. With Model View Controller pattern the model keeps the data and it is displayed in the view. However, this seems to mean you may have the same data in two places in the application simultaneously thereby wasting memory. Usually it's probably not a big deal, but if there is a massive amount of data in JTable or JList it could cut performance . In C++ you can use pointers to help get around some of these issues, but what do you do in Java? Does anyone know of any techniques to lessen this or am I just imagining a problem that's not really there?

Thanks
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 3740

We don't allow crossposting, so I'll lock this topic. People who want to discuss your question, can do it in this thread. This forum is meant for questions regarding the SCJD certification.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
 
subject: MVC question
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com