what is MVC Pattern?

Answers were Sorted based on User's Feedback



what is MVC Pattern?..

Answer / devarathnam c,kotagudibanda(po

Hi... MVC is the one of the design pattern which enables
you to de-coupling the modules.
MODEL:It cane be used to store the database objects.
VIEW: It can be used to view purpose,to giving the user
input.
CONTROLLER:It is the main component in the MVC
pattern,which can handle request and response mechanism.

Is This Answer Correct ?    6 Yes 2 No

what is MVC Pattern?..

Answer / ak

MVC is basically a layered design patterl in which separate
conceptual units are set to function independently.

For example: there may be multiple VIEW ( display monitors,
fone communicators, AVR's ) at a railway platform showing
timings of perticular train. Its sole purpose is to
display. How it will display is its responsibility which no
other layer of the design is concerned with. To get what to
display it just interacts with a MODAL which in this case
is a database.

MODAL layer is completely independent from collecting data
( controller layer) and showing it on platform ( view
layer ). Its sole responsibility is to save and retrieve
data from and to respective clients.

CONTROLLER layer is something which is involved with other
complex tasks like tracking time, distance, speed etc of
the trains.

Comments are appreciated.

Is This Answer Correct ?    4 Yes 2 No

what is MVC Pattern?..

Answer / ashish

MVC stands for model view controller.If you take a Struts
web application then view consists of JSP . Its only to
show the client the view part not any other part. The
Controller will the action Servlet. Action Servlet
basically controlls the request from the view part and
calls respective Action class for business logic processing
and fetching data from the database.The model part consists
of Action class and helper class. It purely consists of the
business logic as well as the interface to access the
layer. The advantage of this pattern is Loose coupling.
Lets say you want to add the text field in JSP. That will
not required to change your Action class or Action Servlet.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Design Patterns Interview Questions

Can we inherit singleton class?

0 Answers  


Explain what is good design?

0 Answers  


What is the difference between builder and composite?

0 Answers  


Are you using singleton in your code?

0 Answers  


What is the difference between proxy and adapter?

0 Answers  






What is meant by design pattern?

0 Answers  


What is the difference between factory and strategy design pattern?

0 Answers  


what is cascading order?

1 Answers  


What is proxy in design pattern?

0 Answers  


What is single tone design pattern in java?

0 Answers  


What is the builder pattern?

0 Answers  


what is MVC Pattern?

3 Answers   Honeywell,


Categories