What is Spring MVC?

The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale and theme resolution as well as support for uploading files. The default handler is based on the @Controller and @RequestMapping annotations, offering a wide range of flexible handling methods.

  • The Model encapsulates the application data and in general, they will consist of POJOs.
  • The View is responsible for rendering the model data and in general it generates HTML output that the client’s browser can interpret.
  • The Controller is responsible for processing user requests and building an appropriate model and passes it to the view for rendering. …

Spring Framework is based on two design principles — Dependency Injection and IOC.

Prerequisites: Before proceeding with this blog, you should have a good understanding of Java programming language.

What is Spring FrameWork?

  1. Spring is a lightweight and open-source framework created by Rod Johnson in 2003.
  2. Spring provides loose coupling because of IOC (Inversion of control) mechanism.
  3. Spring framework can be used to develop any kind of java application. It means we can develop starting from a console application up to an enterprise-level application.
  4. Unlike another framework, spring framework has its own container. So, spring works without server also.

Inversion of Control:

Inversion of Control is a principle in software engineering by which the control of objects or portions of a program is transferred to a container or framework. It’s most often used in the context of object-oriented programming. …

What is Servlet?

Today we all are aware of the need of creating dynamic web pages i.e the ones which have the capability to change the site contents according to the time or are able to generate the contents according to the request received by the client. If you like coding in Java, then you will be happy to know that using Java there also exists a way to generate dynamic web pages and that way is Java Servlet. But before we move forward with our topic let’s first understand the need for server-side extensions.

Below is the list of topics that I will be covering in this Java Servlets…

CSS Grid Layout is the most powerful layout system available in CSS. It is a 2-dimensional system, meaning it can handle both columns and rows, unlike flexbox which is largely a 1-dimensional system.

What is Grid?

A grid is a set of intersecting horizontal and vertical lines defining columns and rows. Elements can be placed onto the grid within these column and row lines. CSS grid layout has the following features:

  • Fixed and flexible track sizes: You can create a grid with fixed track sizes — using pixels for example. This sets the grid to the specified pixel which fits the layout you desire. …

What is CSS Flexbox model?

The CSS flexbox model is used to make the elements behave predictably when they are used with several screen sizes and different display devices. It provides a more dynamic or flexible way to layout, align and distribute space among items in the container.

The CSS flexbox can control the following aspects of the layout:

  • The direction to which the items are displayed.
  • The wrapping of items when the window is resized.
  • The Justification of items and space in between.
  • The vertical alignment of items.
  • The alignment of lines of items.
  • The order of items in a line. …

What is Normalization?

  • A process for assigning attributes to entities.
  • Store only the minimal amount of information.
  • Reduces data redundancies.
  • Remove data anomalies.

There are three types of anomalies that we should avoid or minimize :

  1. Insertion Anomaly: An insertion anomaly is the inability to add data to the database due to the absence of other data.
Image for post
Image for post

For example: assume that Student_Group attribute is defined so that null values are not allowed. If a new employee is hired but not immediately assigned to a Student_Group then this employee could not be entered into the database. …

One of the most interesting and really useful concepts in java.

What is Collection?

Collections are like containers that group multiple items in a single unit. For example, a folder of movies, a list of names, etc. In other, If we want to Represent a Group of Individual Objects as a Single Entity then we should go for Collection.

Why should be go for collection framework if we have an array?

because there is some limitation of the array:

Arrays are Fixed in Size that is Once we created an Array there is No Chance of Increasing OR Decreasing Size based on Our Requirement. …

Why should we even care about the complexity of the program?

Think you and your friend wrote some algorithm(finite sequence of instruction)which solves the same problem, but how do you get to know which algorithm is more efficient and the challenge here is to choose the most efficient one. This is the case where complexity analysis plays a major role.

So how do we compare the two algorithms?

We can compare the algorithms on the basis of their space (amount of memory consume) and time complexity (number of operations performed).

What is Time Complexity?

The time complexity is the computational complexity that represents the amount of time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of operations performed by an algorithm, supposing that each operation takes a fixed amount of time to perform. Some operations are single additions, multiplications, assignments etc. We may leave some operations uncounted and concentrate on those that are performed the largest number of times.

A most important question according to interview perceptive

This blog is really useful for a beginner (one who is struggling with OOPs concept) or one who is preparing for campus placement or interview.

OOPs(Objects Oriented Programming) is basically sound simple but also quite interesting and really important concepts in almost every programming language(like C++, Java, Dart, Swift, Scala, etc). Firstly OOPs depend on class, objects, inheritance, abstraction, etc. We will learn each concept of OOPS in detail be patient. The four basic concepts of Objects Oriented Programming are encapsulation, abstraction, inheritance, and polymorphism.

Image for post
Image for post

In this blog we will understand Basic OOPs concepts are as follow :

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism

Let’s get started with our first OOPs Concepts…

What is Git Revert?

The question is quite old but still confusing.

Image for post
Image for post

git revert simply creates a new commit that is the opposite of a specific commit. Let’s break that down a bit. If a character is added in commit A, if Git reverts commit A, then Git will make a new commit where that character is deleted(opposite of commit A).

You have three commits in commit history and last commit(or last changes) has some bug or you don’t want those changes, so you decide to remove the change of the last commit

$ git init
Initialized empty Git repository in Desktop/Projects/RevertExample/.git/
$ echo "one Line" > Readme.md
$ git commit -m "added one line in readme.md"
[master (root-commit) e10e64c] added one line in readme.md
1 file changed, 1 insertion(+)
create mode 100644 Readme.md …


Vinayak Mittal

Let’s Have Coffee & Code it

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store