String in Java
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
Java Interview Question and Answer.
In this article, we are going to discuss some important Java Interview Question and Answer. In this post, we are going to discuss some important Java Interview Questions and Answers. Difference between final, finally, finalize? We’re going to take an overview of final, finally and finalize Java keywords. Final Final is a modifier …. Read More
Access Modifiers in Java.
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.
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
Encapsulation in Java with Examples
Introduction Encapsulation is an OOPS concept. It is a process of wrapping the data (variables) and code together into a single unit. It is a concept of hiding data in a class, from other classes using data hiding. That’s why it is also known as data hiding. What is Encapsulation? It is …. Read More
Inheritance in java
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.
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
Abstract Class and Abstraction in Java.
In this article, we are going to discuss Abstract Class and Abstraction in Java and method, Abstract class and Abstract class. We are going to discuss the abstract class. Before learning the Java abstract class, we are going to discuss the Abstraction and Abstract method. What is Abstraction in Java? Abstraction is a process of …. Read More
Polymorphism in Java
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
Class, Object and Method in Java.
We are going to discuss classes and objects, when you talk about Java then class and object are a very important part of Java. Class and object are concepts of oops. we are going to discuss what is class and object, what are used, and where we use them. Object and Class in java is …. Read More