Skip to content

What Are Programming Paradigms?

In this lesson, you will learn various programming paradigms in computer science.

Gopi Gorantala
Gopi Gorantala
1 min read

Table of Contents

A paradigm is a way or method to do some task. A programming paradigm is a way or style that does not refer to a specific programming language.

Types of paradigms in computers

  1. Procedural
  2. Object-Oriented
  3. Event Driven
  4. Functional
  5. Logic
  6. Aspect-oriented programming, etc

Sketch

Out of all the above programming paradigms, we will learn about Functional programming and why it got introduced in Java 8.

We will also discuss the topics where Object-Oriented falls short and how functional programming steps in and chimes.

Note: Java supports both object-oriented and functional programming.

Java 8 introduced developers to functional programming with lambda expressions, Streams API, and much more!

Now, can we say Java supports multi-paradigm? Yes!! 🤩 Java supports multi-paradigm such as - generic, object-oriented, functional, imperative, reflective, concurrent, etc.

Java Streams APIJava

Gopi Gorantala Twitter

Gopi is an engineering leader with 12+ of experience in full-stack development—a specialist in Java technology stack. He worked for multiple startups, the European govt, and FAANG in India and Europe.

Comments


Related Posts

Members Public

Differences Between JDK, JRE, and JVM?

Short answer JDK, JRE, and JVM are essential components of the Java platform, each serving a distinct purpose. Here are the key differences between them: 1. JDK (Java Development Kit): The JDK is used by developers to write, compile, and debug Java code. 2. JRE (Java Runtime Environment): End-users use

Members Public

Difference Between String and char[] in Java

Short answer Strings String is an object with many helpful methods. String class in Java's standard library is designed to handle text as a sequence of characters. A string of characters (string object) is non-modifiable or immutable in Java. Once you've created it, you cannot modify

Members Public

What is an Object class in Java?

Short answer Object class is the super class of every class you can create. In Java, a class extends another class using the keyword extends. If you don't have any other class to extend, that's fine. The compiler will make your class extend the Object class.