Category: Blog

String in Java

0 commentsBlog

Introduction The string is one of the most widely used classes in java programming by developers. Strings are immutable, so StringBuffer and StringBuilder classes come to make the string mutable (manipulations) easy way.   String In Java, a string is an object which represents a sequence of characters. The string is immutable, which means it ….  Read More

Access Modifiers in Java.

0 commentsBlog

  The access modifiers in Java helps to restrict the scope of a class, constructor, variable, method, or data member. There are four types of access modifiers in java. Default Private Protected Public       1.Default access modifier When we don’t use any access modifier for a class, method, or data member, it is ….  Read More

Object Oriented Programming (OOPs) Concept in Java.

0 commentsBlog

Introduction Object-Oriented Programming (OOPs) is the concept of objects based programming, that contains data(fields) and its behavior (method), in a single location(object). So the reason for using object-oriented programming is to increase the flexibility and maintainability of programs. That’s why in object-oriented programming language everything is represented as an object. The main aim of Object-oriented ….  Read More

Inheritance in java

0 commentsBlog

What is Inheritance in java? Inheritance is an important part of Object-Oriented Programming (OOP) languages. Inheritance is a mechanism where one class acquires all the properties and behaviors (methods and fields) of another class is called Inheritance. We use extends Keyword to inherit the properties of one class to another class. Using the extends keyword, ….  Read More

Interface Class in Java.

0 commentsBlog

What is the interface in java? Interface in java is one of OOP’s concepts. The interface in java is a mechanism to achieve 100% abstraction. The interface provides achieve 100% abstraction because it uses only abstract methods (not method body). An interface can be used only abstract methods (without body), before java 8. After java ….  Read More

Polymorphism in Java

0 commentsBlog

  In this article, we are going to discuss one of the most powerful features of OOPs concepts Polymorphism, and we will also discuss their types and features with programming examples.     What is Polymorphism in java? Polymorphism is one of the OOPs features, it allows us to perform a single action in different ….  Read More