A method to solve up a problem or to do some task is termed as Paradigm. And to do some task with the help of a programming language in a specific way is called a Programming paradigm. There are many programming paradigms such as the Procedural Programming Paradigm, Logical Programming Paradigm and many more.

Object-Oriented Programming is a paradigm to solve a problem with the help of classes and objects.

Object: These are the key to understand the concept of Object-Oriented Programming. Our life is fully surrounded by objects such as a cow, pen, desk, car and many more.


In this article, we will learn about inversion of control and dependency injection in spring

Spring Framework

Spring is a little framework with a lot of features. It’s sometimes referred to as a framework of frameworks because it supports a variety of frameworks, including Struts, Hibernate, Tapestry, EJB, JSF, and others. IOC, AOP, DAO, Context, ORM, WEB MVC, and other modules are part of the Spring framework.

Advantage of Spring framework

  • Easy to test: Testing the programme is made easier with Dependency Injection. Although an EJB or Struts application needs a server to run, the Spring framework does not.
  • Loose Coupling: It…

Why should we have code conventions?

Programmers value code conventions for many reasons:

  1. Code conventions make the software more readable, allowing engineers to understand new code more easily and quickly.
  2. The original author of software hardly ever maintains it for the rest of its life.
  3. If we are going to sell our source code as a product, make sure it’s as well packaged and clean as any other item you make.

1.Naming convention:
These are a set of guidelines to follow when naming identifiers such as classes, packages, variables, constants, methods, and so on. …

In this article, we will learn about JSP and Servlet

Client-Server Architecture

When a client computer submits a data request to the server over the internet, the server accepts the request and returns the digital data required to the client.

Client: A client is a person or an organisation that uses a specific service. A client is a computer in the digital world, capable of receiving information or using a specific service from the service providers.

Server: Similarly, the term “server” refers to a person or medium who serves something. …

Normalisation is a process by which we can decompose or divide any relation into more than one relation to remove the anomalies in the relational database.

Update anomalies: An update anomaly is a data inconsistency that results from data redundancy and a partial update

Deletion anomalies: A delete anomaly occurs when you delete a record that may contain attributes that shouldn’t be deleted

Insert anomalies: We tried to insert data in a record that does not exist at all.

Normalization rules are divided into the following normal forms:

  1. First Normal Form
  2. Second Normal Form
  3. Third Normal Form
  4. BCNF

Exception: An exception in java is an unwanted event that occurs and disrupts the normal flow of the program. These are recoverable. A programmer can handle such conditions and take necessary corrective actions. Some of them are NullPointerException, SQLException, ClassNotFoundException and RuntimeException. For example, a number divide by zero is a type of RuntimeException.

public class Example {
public static void main(String[] args){
int num1 = 100;
int num2 = 0;
int result = num1 / num2;
Output: java.lang.ArithmeticException: / by zero
at Example.main(Example.java:5)

Error: It is a problem that occurs mainly due to the lack of system…

Akshay Tomar

Get the Medium app
