0% found this document useful (0 votes)
59 views3 pages

MVC-1 Vs MVC-2: Architectural Diagram

The document discusses differences between Java 5 and Java 6, types of MVC, and differences between MVC1 and MVC2 architectures. It also asks several questions about servlets, XML, message queues, ArrayLists, concurrent APIs, executors, and foreign keys in Hibernate.

Uploaded by

Piyush Dube
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views3 pages

MVC-1 Vs MVC-2: Architectural Diagram

The document discusses differences between Java 5 and Java 6, types of MVC, and differences between MVC1 and MVC2 architectures. It also asks several questions about servlets, XML, message queues, ArrayLists, concurrent APIs, executors, and foreign keys in Hibernate.

Uploaded by

Piyush Dube
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

-->Difference in java 5 and java 6 ?

java 5:
For-each loop
Varargs
Static Imports
Autoboxing and unboxing
Enum
Covariant Return Type
Annotations
Generics

In Java 6 we can add @Override to methods which implements interfaces and in java 5.0 you
cannot

--> Types of MVC?

MVC-1 vs MVC-2
In this section, you will learn about the difference between MVC 1 & MVC 2.

Architectural Diagram
MVC 1 Architecture

MVC 2 Architecture

Difference Between MVC 1 & MVC 2


MVC 1

MVC 2

MVC1 associates the presentation logic


with the business logic.

MVC 2 isolates or disassociates the


presentation logic from business logic

In MVC1, only one component is


responsible for receiving request and
sending response.

In MVC2, there is separate components for


receiving and sending response. i.e.
Controller & View.

In MVC 1, business logic and presentation


Since both logics are separate that's why
Logic is combined so web designer and web
designer and developer can work together.
developer cant work simulateously.
Doesn't support reusability of application
components.

Reusability of components

In MVC 1, controller and model,both are


JSP.

While controller is servlet and model is java


class.

In MVC2 architecture there is only one


In MVC1 there is tight coupling between
controller which receives all the request for
page and model as data access is usually
the application and is responsible for taking
done using Custom tag or through java bean
appropriate action in response to each
call.
request.
--> Types of Servlets?
Generic Servlet and Https Serlvet.

--> Difference between actionServlet and RequestDispatcherServlet


ActionServlet is a concept in which all the request are passed through the action servlet.
There nothing called as RequestDispatcherServlet.

Why to use XML


->Why to use MQ instead of XML
->Why to set initial size in ArrayList
o Ex: ArrayList list = new ArrayList(20);
What is concurrent api?
What is executor in java?
How to add foregin key and composite key in hiberante

You might also like