Mindblown: a blog about philosophy.

  • Java Polymorphism

    In this tutorial, we will learn about Java polymorphism and its implementation with the help of examples. Polymorphism is an important concept of object-oriented programming. It simply means more than one form. That is, the same entity (method or operator or object) can perform different operations in different scenarios. Example: Java Polymorphism Output In the…

  • Java Interface

    In this tutorial, we will learn about Java interfaces. We will learn how to implement interfaces and when to use them in detail with the help of examples. An interface is a fully abstract class. It includes a group of abstract methods (methods without a body). We use the interface keyword to create an interface in Java.…

  • Abstract Class and Abstract Methods

    In this tutorial, we will learn about Java abstract classes and methods with the help of examples. We will also learn about abstraction in Java. Java Abstract Class The abstract class in Java cannot be instantiated (we cannot create objects of abstract classes). We use the abstract keyword to declare an abstract class. For example, An abstract…

  • Java super

    In this tutorial, we will learn about the super keyword in Java with the help of examples. The super keyword in Java is used in subclasses to access superclass members (attributes, constructors and methods). Before we learn about the super keyword, make sure to know about Java inheritance. Uses of super keyword To call methods of the superclass that is…

  • Java Method Overriding

    In this tutorial, we will learn about method overriding in Java with the help of examples. In the last tutorial, we learned about inheritance. Inheritance is an OOP property that allows us to derive a new class (subclass) from an existing class (superclass). The subclass inherits the attributes and methods of the superclass. Now, if…

  • Java Inheritance

    In this tutorial, we will learn about Java inheritance and its types with the help of example. Inheritance is one of the key features of OOP that allows us to create a new class from an existing class. The new class that is created is known as subclass (child or derived class) and the existing class from…

  • Java instanceof Operator

    In this tutorial, you will learn about Java instanceof operator in detail with the help of examples. The instanceof operator in Java is used to check whether an object is an instance of a particular class or not. Its syntax is Here, if objectName is an instance of className, the operator returns true. Otherwise, it returns false. Example: Java instanceof Output In…

  • Java Recursion

    In this tutorial, you will learn about Java recursive function, its advantages and disadvantages. In Java, a method that calls itself is known as a recursive method. And, this process is known as recursion. A physical world example would be to place two parallel mirrors facing each other. Any object in between them would be reflected recursively.…

  • Java final keyword

    In this tutorial, we will learn about Java final variables, methods and classes with examples. In Java, the final keyword is used to denote constants. It can be used with variables, methods, and classes. Once any entity (variable, method or class) is declared final, it can be assigned only once. That is, the final variable cannot be reinitialized…

  • Java this Keyword

    In this article, we will learn about this keyword in Java, how and where to use them with the help of examples. this Keyword In Java, this keyword is used to refer to the current object inside a method or a constructor. For example, Output: In the above example, we created an object named obj of the…

Got any book recommendations?