In: Computer Science
Java Programming
Explain what is MVC. What does is stand for and explain what MVC suggests for the different parts of an Application?
[PLEASE STOP COPY AND PASTE ANSWERS FROM OTHERS]
Answer)
MVC pattern is also known as the Model View Controller design
pattern. This is used as a design pattern in Java and also other
programming languages and projects. However in Java we define the
components which are used in the MVC as follows :
Model : this is the component which is used for representing the
classes in Java which contain the data from the database. This are
known as POJOs are are used for carrying the data and can also have
the logic implementation to update controller for the data.
View : this is the component which represents the visual webpages
of the site and is the visualization of the data, which is
generated from the data in the Model classes.
Controller : this is the component which represents the model and
view and is used to control the operation and what and how to
represent on the View. Thus this controls the data changes, data
flow from model to View. This is used to have the custom logic
included and also keeping the view and model separate.
**Please Hit Like if you appreciate my answer. For further doubts on the or answer please drop a comment, I'll be happy to help. Thanks for posting.**