MVC Pattern
MVC Pattern
MVC is the most popular design pattern using for creating web development.
Abbreviation of MVC (Model View Controller).It is mainly used for code readability.
Model:
Model layer is used to store the data. Model is a normal java encapsulation
class. there is private variables and setter,getter methods.
It is mainly used for security purpose.
Controller:
Controller layer is the intermediate layer between view and model layer.
we write the business logics in this layer (i.e.) Database connectivity, rendering
corresponding view page, validating data etc.
View:
View is also known as presentation layer. which is used to rendering the data
through view layer.