A Spring MVC is a Java framework that is used to build web applications. It follows the Model-View-Controller design pattern. It implements all the basic features of a core spring framework like Inversion of Control, Dependency Injection.
A Spring MVC provides an elegant solution to use MVC in the spring framework with the help of DispatcherServlet. Here, DispatcherServlet is a class that receives the incoming request and maps it to the right resource such as controllers, models, and views.
Let me start by telling you that when you hear these two words you separate them but “Both are not different, Dependency Injection is a design pattern used to achieve Inversion of Control”.
Now let's understand what is Inversion of Control?
When you think about object-oriented programming the first thing which comes to your mind is objects and class. Now in traditional ways of programming to use other class properties, you create an object in your class.
But what if later you want to change it? You have to make changes in your class and that's where IOC comes into…
A servlet is a Java programming language class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. For such applications, Java Servlet technology defines HTTP-specific servlet classes.
The javax.servlet and javax.servlet.http packages provide interfaces and classes for writing servlets. All servlets must implement the Servlet interface, which defines life-cycle methods. When implementing a generic service, you can use or extend the GenericServlet class provided with the Java Servlet…
What is FlexBox?
Flexbox is a one-dimensional layout method for laying out items in rows or columns. Items flex to fill additional space and shrink to fit into smaller spaces. This article explains all the fundamentals.
For a long time, the only reliable cross-browser-compatible tools available for creating CSS layouts were things like floats and positioning. The following simple layout requirements are either difficult or impossible to achieve with such tools, in any kind of convenient, flexible way:
What is Collection?
In simple words, a collection refers to a group of objects or an amount of material accumulated in one location, especially for some purpose or as a result of some process.
When you talk about programming, it is basically performing some operation on data. Since computers are faster than humans, (but they aren’t smarter) they can process large amount of data easily.
Now to the original point what is collection in java?
When we connect the above two-point the collection is storing data in a single place, or you can refer to it as the data structure.
As the name suggests, Object-Oriented Programming or OOPs refers to languages that use objects in programming. An object-oriented language aims to implement real-world concepts into the programming. (ex:- Inheritance, Polymorphism, Hiding, etc).
What are Class and Object?
A class is what's called a blueprint and an Object is an actual product build on the blueprint.